Function at 0x405830
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], 0x406920
mov ecx, dword fs:[0]
mov dword [esi + 0x80], ecx
mov dword fs:[0], eax
cmp dword [0x42f330], 0xa
jl 0x405892
mov eax, dword [0x42f334]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x405892
nop dword [eax]
jmp 0x405890
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 0x4058f9
mov eax, dword [esi]
dec eax
je 0x405bb2
mov dword [esi], eax
mov eax, dword [0x42f338]
lea ecx, [eax + 1]
imul ecx, eax
test cl, 1
sete cl
cmp dword [0x42f33c], 0xa
setl al
or al, cl
cmp al, 1
jne 0x405a30
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 0x405a30
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 [0x42f170], 0
je 0x405a80
push str.NtSetInformationProcess
push dword [0x42f178]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405aa0
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 0x405aa5
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 0x405920
mov eax, 0xfffffffa
mov dword [0x42f16c], eax
cmp dword [0x42f330], 0xa
jge 0x405b22
jmp 0x405b32
mov eax, 0xffffffff
mov dword [0x42f16c], eax
mov edi, dword [0x42f174]
push ebx
push dword [0x42f178]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x405ad6
push ebx
push dword [0x42f17c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405b94
cmp byte [eax], 0xb8
je 0x405ae1
cmp byte [eax + 5], 0xba
jne 0x405b19
mov ecx, dword [0x42f174]
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 7]
movsd qword [ecx + 7], xmm1
movsd qword [ecx], xmm0
mov dword [0x42f16c], 0
mov dword [esi + 0x88], 0
push 0x7f
push 1
push dword [esi + 8]
call edi
mov ebx, dword [esi + 4]
cmp dword [0x42f330], 0xa
jl 0x405b32
mov eax, dword [0x42f334]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x405ba0
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x405b50
mov edx, dword [esi + 8]
movsd xmm0, qword [edx]
movsd qword [eax], xmm0
add dword [ecx + 4], 8
jmp 0x405b66
mov dword [esi + 0x88], 0
push dword [esi + 8]
push eax
call fcn.004064f0
mov ebx, dword [esi + 4]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [0x42f334]
mov edx, dword [0x42f330]
cmp edx, 0xa
jl 0x4058f0
lea eax, [edi + 1]
imul eax, edi
and eax, 1
je 0x4058f0
jmp 0x405bb0
mov eax, 0xfffffffc
jmp 0x405a85
jmp 0x405ba0
jmp 0x405bb0
xor ecx, ecx
jmp 0x405bc9
inc ecx
test al, al
je 0x405e85
lea ebx, [edi + 1]
imul ebx, edi
and ebx, 1
cmp edx, 0xa
jl 0x405bdf
test ebx, ebx
jne 0x405e80
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 0x405e82
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 0x405c52
cmp edx, ecx
jne 0x405c52
mov dword [esi + 0x24], eax
mov eax, dword [esi + 8]
cmp eax, dword [esi + 4]
mov eax, dword [esi + 0x24]
jne 0x405c52
mov eax, dword [esi + 8]
cmp dword [esi + 0x10], eax
mov eax, dword [esi + 0x24]
je 0x405e92
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.00405330
add esp, 8
fstp qword [esi + 0x68]
movsd xmm1, qword [esi + 0x68]
nop word cs:[eax + eax]
mov edi, dword [0x42f334]
mov edx, dword [0x42f330]
lea ebx, [edi + 1]
imul ebx, edi
and ebx, 1
cmp edx, 0xa
jl 0x405d60
test ebx, ebx
je 0x405d60
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.00405330
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.00405330
add esp, 8
fstp qword [esi + 0x60]
movsd xmm1, qword [esi + 0x60]
jmp 0x405cc0
movsd xmm0, qword [0x410530]
ucomisd xmm0, xmm1
ja 0x405e2c
movsd qword [esi + 8], xmm1
mov dword [esi + 0x14], edx
mov eax, dword [0x42f340]
lea ecx, [eax + 1]
imul ecx, eax
test cl, 1
sete cl
cmp dword [0x42f344], 0xa
setl al
or al, cl
mov byte [esi], al
cmp al, 1
jne 0x405e50
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 0x405e50
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 0x405e2e
xor eax, eax
cmp edx, 0xa
mov ecx, dword [esi + 0x58]
jl 0x405bc0
test ebx, ebx
je 0x405bc0
jmp 0x405ea0
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 0x405db0
jmp 0x405e80
mov edx, dword [esi + 0x14]
cmp edx, 0xa
jl 0x405eae
test ebx, ebx
je 0x405eae
nop
jmp 0x405e90
mov edx, dword [esi + 0x14]
cmp edx, 0xa
jl 0x405ea2
test ebx, ebx
je 0x405ea2
nop
jmp 0x405ea0
mov dword [esi + 0x20], 0
cmp edx, 0xa
jge 0x405e8a
mov ebx, dword [esi + 0x18]
nop word cs:[eax + eax]
mov ecx, dword [ebx]
test ecx, ecx
je 0x405f12
mov eax, dword [ebx + 8]
sub eax, ecx
cmp eax, 0x1000
jb 0x405ee8
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x405ffa
add eax, 0x23
mov ecx, edx
push eax
push ecx
call fcn.0040e6b7
add esp, 8
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov edi, dword [0x42f334]
mov edx, dword [0x42f330]
cmp edx, 0xa
jl 0x405fe3
lea eax, [edi + 1]
imul eax, edi
and eax, 1
je 0x405fe3
nop word [eax + eax]
mov ecx, dword [ebx]
test ecx, ecx
je 0x405f76
mov eax, dword [ebx + 8]
sub eax, ecx
cmp eax, 0x1000
jb 0x405f58
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x405ffa
add eax, 0x23
mov ecx, edx
push eax
push ecx
call fcn.0040e6b7
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 0x405fb8
mov eax, dword [ebx + 8]
sub eax, ecx
cmp eax, 0x1000
jb 0x405f9a
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x405ffa
add eax, 0x23
mov ecx, edx
push eax
push ecx
call fcn.0040e6b7
add esp, 8
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov edi, dword [0x42f334]
mov edx, dword [0x42f330]
lea eax, [edi + 1]
imul eax, edi
and eax, 1
cmp edx, 0xa
jl 0x405ec0
test eax, eax
jne 0x405f30
jmp 0x405ec0
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.00406020
add esp, 0x10
pop ebp
ret