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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4799f5
mov eax, dword fs:[0]
push eax
sub esp, 0x600
mov eax, dword [0x4eec64]
xor eax, esp
mov dword [esp + 0x5f8], eax
push ebx
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, esp
push eax
lea eax, [esp + 0x610]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x24], eax
call fcn.0042fb10
xor esi, esi
lea edi, [esp + 0x5c]
mov ecx, ebx
mov dword [esp + 0x618], esi
call fcn.0040ab70
mov edi, eax
cmp edi, esi
je 0x40ad7e
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x61c], 0xffffffff
call fcn.0042fca0
mov eax, edi
jmp 0x40afef
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0xa4]
xor edx, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], esi
cmp dx, word [esp + 0x78]
jae 0x40afd8
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x1ec]
shr eax, 1
cmp dword [esp + 0x14], eax
jae 0x40adcb
mov ecx, dword [esp + 0x1e8]
mov edx, dword [esp + 0x18]
mov ebx, dword [edx + ecx + 0x150]
cmp ebx, esi
je 0x40adcb
add ebx, 4
jmp 0x40adcd
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x10], edi
cmp ebx, esi
je 0x40ae1c
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ade0
sub eax, edx
mov esi, eax
push 0
lea eax, [esi + 1]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004012c0
mov edi, dword [esp + 0x10]
test edi, edi
je 0x40ae1a
test esi, esi
je 0x40ae15
push esi
lea edx, [edi + 4]
push ebx
push edx
call fcn.0045e4a0
add esp, 0xc
mov byte [esi + edi + 4], 0
xor esi, esi
mov eax, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov byte [esp + 0x618], 2
cmp edi, esi
je 0x40aeb0
lea eax, [edi + 4]
cmp eax, esi
je 0x40aeb0
cmp byte [eax], 0x23
jne 0x40aeb0
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x61c], 1
call fcn.0040b0e0
mov byte [esp + 0x618], 0
mov eax, dword [edi]
and eax, 0xff
cmp eax, 0x80
jae 0x40ae9a
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, esi
jne 0x40afba
push edi
call fcn.00402770
add esp, 4
jmp 0x40afba
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x18]
call fcn.00408120
mov ebx, eax
add esp, 8
cmp ebx, esi
jne 0x40b013
mov ecx, dword [esp + 0x1ec]
mov eax, dword [esp + 0x28]
shr ecx, 1
cmp eax, ecx
jb 0x40aee9
xor edx, edx
xor eax, eax
xor ecx, ecx
jmp 0x40af03
imul eax, eax, 0x168
add eax, dword [esp + 0x1e8]
mov ebx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov esi, dword [eax + 4]
mov edx, dword [eax]
mov eax, ebx
mov dword [esp + 0x40], eax
sub eax, edx
mov dword [esp + 0x38], edx
xor edx, edx
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x58]
push edx
mov dword [esp + 0x48], ecx
sub ecx, esi
mov dword [esp + 0x54], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x44], esi
push ecx
xor esi, esi
cmp dword [esp + 0x28], esi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x60], esi
sete bl
call fcn.00409080
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x40b074
test bl, bl
je 0x40af73
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40af73
mov ecx, dword [esp + 0x20]
push eax
call fcn.0041a8d0
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x61c], 1
call fcn.0040b0e0
mov byte [esp + 0x618], 0
test edi, edi
je 0x40afb8
mov eax, dword [edi]
and eax, 0xff
cmp eax, 0x80
jae 0x40afab
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
test eax, eax
jne 0x40afb8
push edi
call fcn.00402770
add esp, 4
xor esi, esi
mov eax, dword [esp + 0x14]
movsx edx, word [esp + 0x78]
add dword [esp + 0x18], 0x168
inc eax
mov dword [esp + 0x14], eax
cmp eax, edx
jb 0x40ada1
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x61c], 0xffffffff
call fcn.0042fca0
xor eax, eax
mov ecx, dword [esp + 0x610]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5f8]
xor ecx, esp
call fcn.0045c0ce
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x61c], 1
call fcn.0040b0e0
mov byte [esp + 0x618], 0
cmp edi, esi
je 0x40b058
mov eax, dword [edi]
and eax, 0xff
cmp eax, 0x80
jae 0x40b04b
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, esi
jne 0x40b058
push edi
call fcn.00402770
add esp, 4
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x61c], 0xffffffff
call fcn.0042fca0
mov eax, ebx
jmp 0x40afef
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x61c], 1
call fcn.0040b0e0
mov byte [esp + 0x618], 0
test edi, edi
je 0x40b0b9
mov eax, dword [edi]
and eax, 0xff
cmp eax, 0x80
jae 0x40b0ac
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
test eax, eax
jne 0x40b0b9
push edi
call fcn.00402770
add esp, 4
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x61c], 0xffffffff
call fcn.0042fca0
mov eax, esi
jmp 0x40afef