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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505200
mov eax, dword fs:[0]
push eax
sub esp, 0x754
mov eax, dword [0x565680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x754], ebx
mov dword [ebp - 0x760], ebx
mov dword [ebx], fcn.004057d0
mov eax, dword [ebx + 0x14]
mov dword [ebp - 4], 0x19
test eax, eax
je 0x4020c7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x566ba0]
test esi, esi
je 0x4020eb
mov ecx, esi
call fcn.0041ec10
push esi
call fcn.004e4aa8
add esp, 4
mov dword [0x566ba0], 0
mov esi, dword [0x566ba4]
test esi, esi
je 0x40210f
mov ecx, esi
call fcn.0041ec10
push esi
call fcn.004e4aa8
add esp, 4
mov dword [0x566ba4], 0
mov ecx, dword [0x566ac0]
mov eax, ecx
imul eax, ecx
cdq
mov esi, 0x14
idiv esi
cmp edx, 0xd
jne 0x402186
xor edx, edx
mov dword [ebp - 0x758], edx
lea edi, [ebp - 0x748]
xor ebx, ebx
mov eax, ecx
inc ebx
cdq
xor esi, esi
idiv ebx
mov dword [ebp - 0x750], ebx
mov dword [ebp - 0x75c], edx
jmp 0x402150
lea ecx, [esi + 1]
mov esi, ecx
cmp esi, 0xc
jl 0x402150
mov ebx, dword [ebp - 0x750]
mov ecx, dword [0x566ac0]
add edi, 0xc
cmp ebx, 0xb
jl 0x402137
mov edx, dword [ebp - 0x758]
inc edx
mov dword [ebp - 0x758], edx
cmp edx, 0xe
jl 0x402135
mov ebx, dword [ebp - 0x754]
mov edx, dword [ebx + 0x88]
sub edx, 0x10
or esi, 0xffffffff
mov byte [ebp - 4], 0x18
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4021ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x84]
sub edx, 0x10
mov byte [ebp - 4], 0x17
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4021cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x7c]
sub edx, 0x10
mov byte [ebp - 4], 0x16
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4021ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x78]
sub edx, 0x10
mov byte [ebp - 4], 0x15
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40220f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x74]
sub edx, 0x10
mov byte [ebp - 4], 0x14
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40222f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x70]
sub edx, 0x10
mov byte [ebp - 4], 0x13
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40224f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x6c]
sub edx, 0x10
mov byte [ebp - 4], 0x12
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40226f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x64]
sub edx, 0x10
mov byte [ebp - 4], 0x11
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40228f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x60]
sub edx, 0x10
mov byte [ebp - 4], 0x10
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4022af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x5c]
sub edx, 0x10
mov byte [ebp - 4], 0xf
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4022cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x58]
sub edx, 0x10
mov byte [ebp - 4], 0xe
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4022ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x54]
sub edx, 0x10
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40230f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x50]
sub edx, 0x10
mov byte [ebp - 4], 0xc
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40232f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x4c]
sub edx, 0x10
mov byte [ebp - 4], 0xb
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40234f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x48]
sub edx, 0x10
mov byte [ebp - 4], 0xa
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40236f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x44]
sub edx, 0x10
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40238f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x40]
sub edx, 0x10
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4023af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebx + 0x34]
mov byte [ebp - 4], 7
test edi, edi
je 0x402418
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x750], eax
cmp edi, eax
je 0x4023f8
mov ebx, eax
lea esp, [esp]
mov edx, dword [edi]
sub edx, 0x10
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4023eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 4
cmp edi, ebx
jne 0x4023d0
mov ebx, dword [ebp - 0x754]
push dword [ebx + 0x34]
call fcn.004e4aa8
add esp, 4
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov edx, dword [ebx + 0x30]
sub edx, 0x10
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402438
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x2c]
sub edx, 0x10
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402458
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x28]
sub edx, 0x10
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402478
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x24]
sub edx, 0x10
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402498
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x20]
sub edx, 0x10
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4024b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x1c]
sub edx, 0x10
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4024d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x10]
sub edx, 0x10
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4024f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 4
mov dword [ebp - 0x760], ebx
mov edi, dword [ebx + 8]
mov dword [ebp - 4], 0x1a
test edi, edi
je 0x402526
mov ecx, edi
call fcn.00465340
push edi
call fcn.004e4aa8
add esp, 4
mov dword [ebx + 8], 0
mov edx, dword [ebx + 4]
sub edx, 0x10
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x402547
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e52a4
mov esp, ebp
pop ebp
ret