Function at 0x402c7c
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
lea eax, [esi + 0x80]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x403cd0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov eax, dword [0x40f648]
lea ecx, [eax + 1]
imul ecx, eax
test cl, 1
sete cl
cmp dword [0x40f64c], 0xa
setl al
or al, cl
mov byte [esi + 8], al
xor ecx, ecx
push eax
sub esp, 8
mov edx, esp
sub esp, 8
mov dword [esi], esp
sub esp, 0x20
mov edi, esp
and edi, 0xfffffff0
mov esp, edi
push eax
push eax
mov dword [esi + 0x2c], esp
sub esp, 8
mov ebx, esp
sub esp, 0x10
mov eax, esp
and eax, 0xfffffff0
mov esp, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
cmp byte [esi + 8], 0
je 0x402cd8
mov dword [esi + 0xc], eax
mov dword [esi + 0x28], ebx
mov dword [esi + 4], edx
xor eax, eax
mov dword [esi + 0x10], edi
mov dword [esi + 8], eax
mov eax, dword [0x40f650]
lea ecx, [eax + 1]
imul ecx, eax
test cl, 1
sete cl
cmp dword [0x40f654], 0xa
setl al
or al, cl
cmp al, 1
je 0x402d57
jmp 0x402e7c
mov eax, dword [esi + 8]
inc eax
cmp eax, 6
mov edi, dword [esi + 0x10]
jne 0x402d1d
jmp 0x402fd2
mov ecx, 0x48a2fc83
mov edx, 0xe086f566
mov dword [edi + 4], edx
mov dword [edi], ecx
mov ecx, 0x10fe77aa
mov edx, 0xa26443c9
mov dword [edi + 0xc], edx
mov dword [edi + 8], ecx
mov ecx, 0x8890dd2e
mov edx, 0x794315b9
mov dword [edi + 0x14], edx
mov dword [edi + 0x10], ecx
mov ecx, 0x7725cdd8
mov edx, 0xbabf2484
mov dword [edi + 0x1c], edx
mov dword [edi + 0x18], ecx
test al, al
je 0x402e7c
mov eax, 0x3bf788cd
mov ebx, edi
mov edi, 0x81c58703
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], eax
mov eax, 0x67aa1bc6
mov edi, 0xd00513a6
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], eax
mov eax, 0x8890b04f
mov edi, 0x794315b9
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 [0x40f470], 0
je 0x402ec0
push str.NtSetInformationProcess
push dword [0x40f478]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
xor eax, eax
dec eax
test edi, edi
je 0x402e45
xor ebx, ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi + 0x88], ebx
push 0xc
lea ecx, [esi + 0x30]
push ecx
push 0x28
push eax
call edi
sar eax, 0x1f
and eax, 0xfffffffe
mov dword [0x40f46c], eax
xor eax, eax
mov bl, 1
mov edi, dword [0x40f474]
push dword [esi + 0x10]
push dword [eax*4 + 0x40f478]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x402ece
xor eax, eax
inc eax
test bl, 1
mov ebx, 0
jne 0x402e54
mov eax, 0xfffffffc
jmp 0x402ec5
mov ecx, 0x48a2fc83
mov edx, 0xe086f566
mov dword [edi + 4], edx
mov dword [edi], ecx
mov ecx, 0x10fe77aa
mov edx, 0xa26443c9
mov dword [edi + 0xc], edx
mov dword [edi + 8], ecx
mov ecx, 0x8890dd2e
mov edx, 0x794315b9
mov dword [edi + 0x14], edx
mov dword [edi + 0x10], ecx
mov ecx, 0x7725cdd8
mov edx, 0xbabf2484
mov dword [edi + 0x1c], edx
mov dword [edi + 0x18], ecx
jmp 0x402d57
mov eax, 0xfffffffa
mov dword [0x40f46c], eax
mov edx, dword [esi]
jmp 0x402f09
cmp byte [eax], 0xb8
mov edx, dword [esi]
je 0x402edb
cmp byte [eax + 5], 0xba
jne 0x402f09
mov ecx, dword [0x40f474]
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 7]
movsd qword [ecx + 7], xmm1
movsd qword [ecx], xmm0
xor eax, eax
mov dword [0x40f46c], eax
mov dword [esi + 0x88], eax
push 0x7f
push 1
push edx
call edi
mov edx, dword [esi]
cmp dword [0x40f64c], 0xa
jl 0x402f26
mov eax, dword [0x40f648]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x402fce
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x402f3f
movsd xmm0, qword [edx]
movsd qword [eax], xmm0
add dword [ecx + 4], 8
jmp 0x402f50
mov dword [esi + 0x88], 0
push edx
push eax
call fcn.00403a30
cmp dword [0x40f64c], 0xa
jl 0x402f69
mov eax, dword [0x40f648]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x402fd0
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [0x40f648]
mov edx, dword [0x40f64c]
lea eax, [ebx + 1]
imul eax, ebx
and eax, 1
cmp edx, 0xa
jl 0x402fbb
test eax, eax
je 0x402fbb
mov edi, 0x32
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
push edi
call ebx
cmp dword [0x40f64c], 0xa
jl 0x402f69
mov eax, dword [0x40f648]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x402f8f
jmp 0x402f69
cmp edx, 0xa
jl 0x402d46
test eax, eax
je 0x402d46
jmp 0x402fcc
jmp 0x402fce
jmp 0x402fd0
mov dword [esi + 0x24], 0
lea edi, [ebx + 1]
imul edi, ebx
and edi, 1
sete cl
cmp edx, 0xa
setl al
or al, cl
test al, al
je 0x402fed
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, eax
sar ecx, 3
add ecx, 0xfffffffe
mov ebx, dword [esi + 0x24]
cmp ebx, ecx
setae cl
mov dword [esi + 0x20], ecx
jae 0x40320f
mov dword [esi + 0x1c], edx
mov ecx, dword [eax + ebx*8 + 4]
mov dword [esi + 0x10], ecx
mov ecx, dword [eax + ebx*8 + 0xc]
mov dword [esi], ecx
mov edx, dword [eax + ebx*8 + 8]
mov ecx, dword [eax + ebx*8 + 0x10]
mov dword [esi + 8], ecx
mov ecx, dword [eax + ebx*8 + 0x14]
mov dword [esi + 0x18], ecx
mov ecx, edx
sub ecx, dword [eax + ebx*8]
mov dword [esi + 0x5c], ecx
mov ecx, dword [esi]
mov ebx, dword [esi + 0x18]
mov eax, dword [esi + 8]
jne 0x403057
cmp eax, edx
jne 0x403057
cmp ecx, dword [esi + 0x10]
jne 0x403057
cmp ebx, ecx
je 0x40321f
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [esi + 0x5c]
sub ebx, ecx
sub ecx, dword [esi + 0x10]
xorps xmm1, xmm1
cvtsi2ss xmm1, ecx
sub eax, edx
cvtsi2ss xmm2, eax
cvtsi2ss xmm3, ebx
mov eax, dword [esi + 0x2c]
movss dword [esi + 0x10], xmm0
movss dword [eax], xmm0
movss dword [esi], xmm1
movss dword [eax + 4], xmm1
mov ecx, dword [esi + 0x28]
movss dword [esi + 8], xmm2
movss dword [ecx], xmm2
movss dword [esi + 0x18], xmm3
movss dword [ecx + 4], xmm3
push ecx
push eax
call fcn.004026c4
add esp, 8
fstp qword [esi + 0x68]
movsd xmm1, qword [esi + 0x68]
mov ebx, dword [0x40f648]
mov edx, dword [0x40f64c]
lea edi, [ebx + 1]
imul edi, ebx
and edi, 1
cmp edx, 0xa
jl 0x403143
test edi, edi
je 0x403143
mov edi, dword [esi + 0x2c]
movss xmm0, dword [esi + 0x10]
movss dword [edi], xmm0
movss xmm0, dword [esi]
movss dword [edi + 4], xmm0
mov ebx, dword [esi + 0x28]
movss xmm0, dword [esi + 8]
movss dword [ebx], xmm0
movss xmm0, dword [esi + 0x18]
movss dword [ebx + 4], xmm0
push ebx
push edi
call fcn.004026c4
fstp st(0)
add esp, 8
movss xmm0, dword [esi + 0x10]
movss dword [edi], xmm0
movss xmm0, dword [esi]
movss dword [edi + 4], xmm0
movss xmm0, dword [esi + 8]
movss dword [ebx], xmm0
movss xmm0, dword [esi + 0x18]
movss dword [ebx + 4], xmm0
push ebx
push edi
call fcn.004026c4
add esp, 8
fstp qword [esi + 0x60]
movsd xmm1, qword [esi + 0x60]
jmp 0x4030b2
movsd xmm0, qword [0x40c090]
ucomisd xmm0, xmm1
ja 0x4031f9
mov dword [esi + 0x1c], edx
cmp dword [0x40f658], 0xa
jl 0x403175
mov eax, dword [0x40f65c]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x40321d
mov ecx, 0x3bf7bdf9
mov eax, 0x81c58703
mov dword [esi], ecx
mov edx, 0x67aa1bc6
mov ecx, 0xd00513a6
mov dword [esi + 0x10], edx
mov edx, dword [esi + 0xc]
mov dword [edx + 4], eax
mov eax, dword [esi]
mov dword [edx], eax
mov eax, 0x3bf788cd
mov edx, 0x81c58703
mov dword [esi + 0x34], edx
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
mov dword [eax + 8], edx
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x38], edx
lea eax, [esi + 0x30]
xor ecx, ecx
mov ecx, dword [esi + 0xc]
movaps xmm0, xmmword [ecx]
xorps xmm0, xmmword [eax]
mov eax, dword [esi + 0xc]
movaps xmmword [eax], xmm0
push dword [esi + 0xc]
movsd qword [esi + 0x10], xmm1
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 + 0x10]
ucomisd xmm1, xmm0
mov al, 1
mov edx, dword [esi + 0x1c]
jbe 0x4031fb
xor eax, eax
cmp edx, 0xa
jl 0x403204
test edi, edi
jne 0x40322b
inc dword [esi + 0x24]
test al, al
jne 0x402fd9
cmp edx, 0xa
jl 0x403239
test edi, edi
mov ebx, dword [esi + 4]
je 0x40323c
jmp 0x40321b
jmp 0x40321d
mov eax, dword [esi + 0x1c]
cmp eax, 0xa
jl 0x40322d
test edi, edi
je 0x40322d
jmp 0x40322b
mov dword [esi + 0x20], 0
cmp eax, 0xa
jge 0x403214
mov ebx, dword [esi + 4]
xor edi, edi
mov eax, dword [ebx]
test eax, eax
je 0x40325b
mov ecx, dword [ebx + 8]
sub ecx, eax
push ecx
push eax
call fcn.004035ea
add esp, 8
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
cmp dword [0x40f64c], 0xa
jl 0x403293
mov eax, dword [0x40f648]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x403293
mov eax, dword [ebx]
test eax, eax
je 0x40323e
mov ecx, dword [ebx + 8]
sub ecx, eax
push ecx
push eax
call fcn.004035ea
add esp, 8
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
jmp 0x40323e
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