Function at 0x405890
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov esi, esp
mov dword [esi + 0x78], ebp
mov dword [esi + 0x7c], esp
mov dword [esi + 0x88], 0xffffffff
lea eax, [esi + 0x80]
mov dword [esi + 0x84], 0x406980
mov ecx, dword fs:[0]
mov dword [esi + 0x80], ecx
mov dword fs:[0], eax
cmp dword [0x42e330], 0xa
jl 0x4058f2
mov eax, dword [0x42e334]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x4058f2
nop dword [eax]
jmp 0x4058f0
push eax
sub esp, 8
mov eax, esp
mov dword [esi + 0x18], eax
sub esp, 8
mov dword [esi + 8], esp
sub esp, 0x20
mov ebx, esp
and ebx, 0xfffffff0
mov esp, ebx
push eax
push eax
mov dword [esi + 0x2c], esp
sub esp, 8
mov dword [esi + 0x28], esp
sub esp, 0x10
mov ecx, esp
and ecx, 0xfffffff0
mov dword [esi + 0x1c], ecx
mov esp, ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov eax, 6
mov dword [esi + 4], ebx
jmp 0x405959
mov eax, dword [esi]
dec eax
je 0x405c12
mov dword [esi], eax
mov eax, dword [0x42e338]
lea ecx, [eax + 1]
imul ecx, eax
test cl, 1
sete cl
cmp dword [0x42e33c], 0xa
setl al
or al, cl
cmp al, 1
jne 0x405a90
mov ecx, 0x6c5eb501
mov edx, 0xc00f325d
mov dword [ebx + 4], edx
mov dword [ebx], ecx
mov ecx, 0xb8dc88b8
mov edx, 0xd29fa8de
mov dword [ebx + 0xc], edx
mov dword [ebx + 8], ecx
mov ecx, 0xd4247670
mov edx, 0x72605e66
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x10], ecx
mov ecx, 0xa535b0ce
mov edx, 0xd7b8e7ff
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x18], ecx
test al, al
je 0x405a90
mov eax, 0x1f0bc14f
mov edi, 0xa14c4038
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], eax
mov eax, 0xcf88e4d4
mov edi, 0xa0fef8b1
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], eax
mov eax, 0xd4241b11
mov edi, 0x72605e66
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], edx
lea eax, [esi + 0x30]
xor ecx, ecx
movapd xmm0, xmmword [ebx]
xorpd xmm0, xmmword [eax]
movapd xmm1, xmmword [ebx + 0x10]
movapd xmmword [ebx], xmm0
xorpd xmm1, xmmword [eax + 0x10]
movapd xmmword [ebx + 0x10], xmm1
cmp byte [0x42e170], 0
je 0x405ae0
push str.NtSetInformationProcess
push dword [0x42e178]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405b00
mov edi, eax
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi + 0x88], 0
push 0xc
lea ecx, [esi + 0x30]
push ecx
push 0x28
push eax
call edi
mov ebx, dword [esi + 4]
sar eax, 0x1f
and eax, 0xfffffffe
jmp 0x405b05
mov ecx, 0x6c5eb501
mov edx, 0xc00f325d
mov dword [ebx + 4], edx
mov dword [ebx], ecx
mov ecx, 0xb8dc88b8
mov edx, 0xd29fa8de
mov dword [ebx + 0xc], edx
mov dword [ebx + 8], ecx
mov ecx, 0xd4247670
mov edx, 0x72605e66
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x10], ecx
mov ecx, 0xa535b0ce
mov edx, 0xd7b8e7ff
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x18], ecx
jmp 0x405980
mov eax, 0xfffffffa
mov dword [0x42e16c], eax
cmp dword [0x42e330], 0xa
jge 0x405b82
jmp 0x405b92
mov eax, 0xffffffff
mov dword [0x42e16c], eax
mov edi, dword [0x42e174]
push ebx
push dword [0x42e178]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x405b36
push ebx
push dword [0x42e17c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405bf4
cmp byte [eax], 0xb8
je 0x405b41
cmp byte [eax + 5], 0xba
jne 0x405b79
mov ecx, dword [0x42e174]
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 7]
movsd qword [ecx + 7], xmm1
movsd qword [ecx], xmm0
mov dword [0x42e16c], 0
mov dword [esi + 0x88], 0
push 0x7f
push 1
push dword [esi + 8]
call edi
mov ebx, dword [esi + 4]
cmp dword [0x42e330], 0xa
jl 0x405b92
mov eax, dword [0x42e334]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x405c00
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x405bb0
mov edx, dword [esi + 8]
movsd xmm0, qword [edx]
movsd qword [eax], xmm0
add dword [ecx + 4], 8
jmp 0x405bc6
mov dword [esi + 0x88], 0
push dword [esi + 8]
push eax
call fcn.00406550
mov ebx, dword [esi + 4]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [0x42e334]
mov edx, dword [0x42e330]
cmp edx, 0xa
jl 0x405950
lea eax, [edi + 1]
imul eax, edi
and eax, 1
je 0x405950
jmp 0x405c10
mov eax, 0xfffffffc
jmp 0x405ae5
jmp 0x405c00
jmp 0x405c10
xor ecx, ecx
jmp 0x405c29
inc ecx
test al, al
je 0x405ee5
lea ebx, [edi + 1]
imul ebx, edi
and ebx, 1
cmp edx, 0xa
jl 0x405c3f
test ebx, ebx
jne 0x405ee0
mov dword [esi + 0x14], edx
mov eax, dword [esi + 0x18]
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
sar eax, 3
add eax, 0xfffffffe
cmp ecx, eax
setae al
mov dword [esi + 0x20], eax
jae 0x405ee2
mov eax, dword [edx + ecx*8 + 4]
mov dword [esi + 4], eax
mov eax, dword [edx + ecx*8 + 0xc]
mov dword [esi + 8], eax
mov eax, dword [edx + ecx*8 + 8]
mov dword [esi], eax
mov eax, dword [edx + ecx*8 + 0x10]
mov dword [esi + 0x5c], eax
mov eax, dword [edx + ecx*8 + 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [esi]
mov dword [esi + 0x58], ecx
sub eax, dword [edx + ecx*8]
mov edx, dword [esi + 0x5c]
mov ecx, dword [esi]
jne 0x405cb2
cmp edx, ecx
jne 0x405cb2
mov dword [esi + 0x24], eax
mov eax, dword [esi + 8]
cmp eax, dword [esi + 4]
mov eax, dword [esi + 0x24]
jne 0x405cb2
mov eax, dword [esi + 8]
cmp dword [esi + 0x10], eax
mov eax, dword [esi + 0x24]
je 0x405ef2
xorps xmm0, xmm0
cvtsi2ss xmm0, eax
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 8]
sub eax, edi
sub edi, dword [esi + 4]
xorps xmm1, xmm1
cvtsi2ss xmm1, edi
sub edx, ecx
cvtsi2ss xmm2, edx
cvtsi2ss xmm3, eax
mov eax, dword [esi + 0x2c]
movss dword [esi], xmm0
movss dword [eax], xmm0
movss dword [esi + 8], xmm1
movss dword [eax + 4], xmm1
mov ecx, dword [esi + 0x28]
movss dword [esi + 4], xmm2
movss dword [ecx], xmm2
movss dword [esi + 0x10], xmm3
movss dword [ecx + 4], xmm3
push ecx
push eax
call fcn.00405390
add esp, 8
fstp qword [esi + 0x68]
movsd xmm1, qword [esi + 0x68]
nop word cs:[eax + eax]
mov edi, dword [0x42e334]
mov edx, dword [0x42e330]
lea ebx, [edi + 1]
imul ebx, edi
and ebx, 1
cmp edx, 0xa
jl 0x405dc0
test ebx, ebx
je 0x405dc0
mov edi, dword [esi + 0x2c]
movss xmm0, dword [esi]
movss dword [edi], xmm0
movss xmm0, dword [esi + 8]
movss dword [edi + 4], xmm0
mov ebx, dword [esi + 0x28]
movss xmm0, dword [esi + 4]
movss dword [ebx], xmm0
movss xmm0, dword [esi + 0x10]
movss dword [ebx + 4], xmm0
push ebx
push edi
call fcn.00405390
fstp st(0)
add esp, 8
movss xmm0, dword [esi]
movss dword [edi], xmm0
movss xmm0, dword [esi + 8]
movss dword [edi + 4], xmm0
movss xmm0, dword [esi + 4]
movss dword [ebx], xmm0
movss xmm0, dword [esi + 0x10]
movss dword [ebx + 4], xmm0
push ebx
push edi
call fcn.00405390
add esp, 8
fstp qword [esi + 0x60]
movsd xmm1, qword [esi + 0x60]
jmp 0x405d20
movsd xmm0, qword [0x40f530]
ucomisd xmm0, xmm1
ja 0x405e8c
movsd qword [esi + 8], xmm1
mov dword [esi + 0x14], edx
mov eax, dword [0x42e340]
lea ecx, [eax + 1]
imul ecx, eax
test cl, 1
sete cl
cmp dword [0x42e344], 0xa
setl al
or al, cl
mov byte [esi], al
cmp al, 1
jne 0x405eb0
nop word cs:[eax + eax]
mov ecx, 0x1f0bf47b
mov edx, 0xa14c4038
mov eax, dword [esi + 0x1c]
mov dword [eax + 4], edx
mov dword [eax], ecx
mov ecx, 0xcf88e4d4
mov edx, 0xa0fef8b1
mov dword [eax + 0xc], edx
mov dword [eax + 8], ecx
cmp byte [esi], 0
je 0x405eb0
mov dword [esi], 0x1f0bc14f
mov eax, 0xa14c4038
mov dword [esi + 4], ecx
mov ecx, dword [esi]
mov dword [esi], ecx
mov dword [esi + 0x34], eax
mov eax, dword [esi]
mov dword [esi + 0x30], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
xor eax, eax
lea ecx, [esi + 0x30]
mov eax, dword [esi + 0x1c]
movaps xmm0, xmmword [eax]
xorps xmm0, xmmword [ecx]
movaps xmmword [eax], xmm0
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [esi + 8]
ucomisd xmm1, xmm0
mov al, 1
mov edx, dword [esi + 0x14]
jbe 0x405e8e
xor eax, eax
cmp edx, 0xa
mov ecx, dword [esi + 0x58]
jl 0x405c20
test ebx, ebx
je 0x405c20
jmp 0x405f00
mov ecx, 0x1f0bf47b
mov edx, 0xa14c4038
mov eax, dword [esi + 0x1c]
mov dword [eax + 4], edx
mov dword [eax], ecx
mov ecx, 0xcf88e4d4
mov edx, 0xa0fef8b1
mov dword [eax + 0xc], edx
mov dword [eax + 8], ecx
jmp 0x405e10
jmp 0x405ee0
mov edx, dword [esi + 0x14]
cmp edx, 0xa
jl 0x405f0e
test ebx, ebx
je 0x405f0e
nop
jmp 0x405ef0
mov edx, dword [esi + 0x14]
cmp edx, 0xa
jl 0x405f02
test ebx, ebx
je 0x405f02
nop
jmp 0x405f00
mov dword [esi + 0x20], 0
cmp edx, 0xa
jge 0x405eea
mov ebx, dword [esi + 0x18]
nop word cs:[eax + eax]
mov ecx, dword [ebx]
test ecx, ecx
je 0x405f72
mov eax, dword [ebx + 8]
sub eax, ecx
cmp eax, 0x1000
jb 0x405f48
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x40605a
add eax, 0x23
mov ecx, edx
push eax
push ecx
call fcn.0040dc77
add esp, 8
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov edi, dword [0x42e334]
mov edx, dword [0x42e330]
cmp edx, 0xa
jl 0x406043
lea eax, [edi + 1]
imul eax, edi
and eax, 1
je 0x406043
nop word [eax + eax]
mov ecx, dword [ebx]
test ecx, ecx
je 0x405fd6
mov eax, dword [ebx + 8]
sub eax, ecx
cmp eax, 0x1000
jb 0x405fb8
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x40605a
add eax, 0x23
mov ecx, edx
push eax
push ecx
call fcn.0040dc77
add esp, 8
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov ecx, dword [ebx]
test ecx, ecx
je 0x406018
mov eax, dword [ebx + 8]
sub eax, ecx
cmp eax, 0x1000
jb 0x405ffa
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x40605a
add eax, 0x23
mov ecx, edx
push eax
push ecx
call fcn.0040dc77
add esp, 8
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov edi, dword [0x42e334]
mov edx, dword [0x42e330]
lea eax, [edi + 1]
imul eax, edi
and eax, 1
cmp edx, 0xa
jl 0x405f20
test eax, eax
jne 0x405f90
jmp 0x405f20
mov eax, dword [esi + 0x80]
mov dword fs:[0], eax
mov eax, dword [esi + 0x20]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ebp
sub esp, 0x10
lea esi, [ebp - 0x8c]
mov ebp, dword [esi + 0x78]
mov ecx, dword [esi + 0x18]
call fcn.00406080
add esp, 0x10
pop ebp
ret