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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x405253
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x408040]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x408040]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x54]
push 0xffffffffffffffff
mov dword [esp + 0x44], eax
xor esi, esi
push esi
lea eax, [esp + 0x44]
push eax
push 2
mov dword [esp + 0x48], ebx
call dword [section..rdata]
cmp eax, esi
jne 0x402348
jmp 0x4020dc
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x78], esi
mov eax, dword [ebx + 0x50]
cmp eax, esi
mov dword [esp + 0x30], eax
mov byte [esp + 0x34], 0
je 0x402105
lea esi, [esp + 0x30]
call fcn.00401a5a
mov byte [esp + 0x78], 1
mov eax, dword [ebx + 0x58]
cmp byte [eax + 8], 0
jne 0x402336
mov ecx, eax
mov eax, ebx
call fcn.00404440
mov edi, dword [ecx + 0x19]
mov esi, eax
add esi, dword [ecx + 0x15]
test edi, edi
mov dword [esp + 0x2c], edi
je 0x4022fb
mov ecx, edi
lea edx, [esp + 0x14]
call fcn.004029ff
and dword [esp + 0x28], 0
test edi, edi
jbe 0x40220a
mov dword [esp + 0x24], esi
mov eax, ebx
call fcn.00404440
mov ecx, dword [ebx + 0x58]
add eax, dword [ecx + 0x2d]
cmp dword [esp + 0x24], eax
ja 0x40232d
and dword [esp + 0x4c], 0
push 6
pop ecx
push 0x1c
xor eax, eax
lea edi, [esp + 0x54]
rep stosd dword es:[edi], eax
pop edi
push edi
push dword [esp + 0x28]
lea eax, [esp + 0x54]
push edi
push eax
call dword [0x406140]
xor esi, esi
add esp, 0x10
cmp dword [esp + 0x18], esi
je 0x4021a5
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ecx, edi
cdq
idiv ecx
mov esi, eax
lea eax, [esp + 0x14]
call fcn.00402acc
cmp eax, esi
jae 0x4021c8
lea eax, [esp + 0x4c]
push eax
push 1
push dword [esp + 0x24]
call fcn.00402d62
mov dword [esp + 0x1c], eax
jmp 0x4021f4
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x18], esi
jbe 0x4021d8
call dword [0x406098]
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x54]
push eax
lea ebx, [esp + 0x50]
lea esi, [esp + 0x20]
call fcn.00402cdf
mov ebx, dword [esp + 0x38]
inc dword [esp + 0x28]
mov eax, dword [esp + 0x28]
add dword [esp + 0x24], edi
cmp eax, dword [esp + 0x2c]
jb 0x402150
mov eax, dword [ebx + 0x58]
and dword [eax + 0x19], 0
mov eax, dword [ebx + 8]
test eax, eax
je 0x40221f
push eax
call dword [0x406044]
lea esi, [esp + 0x30]
call fcn.00401a81
lea eax, [esp + 0x14]
call fcn.00402acc
test eax, eax
je 0x4022fb
lea eax, [ebx + 0x7c]
test eax, eax
mov dword [esp + 0x24], eax
je 0x402251
mov eax, dword [eax]
test eax, eax
je 0x402251
push eax
call dword [0x406034]
lea esi, [ebx + 0x5c]
mov eax, esi
mov byte [esp + 0x78], 2
call fcn.00402acc
test eax, eax
je 0x4022b7
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
jbe 0x402278
call dword [0x406098]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
jbe 0x40228c
call dword [0x406098]
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
jbe 0x40229a
call dword [0x406098]
push dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x30]
mov ecx, esi
push eax
push edi
push esi
push dword [esp + 0x44]
call fcn.00403733
jmp 0x4022e1
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x18]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 8]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0xc], ecx
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x4022f2
push eax
call dword [0x406048]
lea esi, [esp + 0x24]
call fcn.00401a43
lea esi, [esp + 0x30]
call fcn.00401a81
or dword [esp + 0x78], 0xffffffff
lea esi, [esp + 0x14]
call fcn.004029e4
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x44]
push eax
push 2
call dword [section..rdata]
test eax, eax
je 0x4020da
jmp 0x402348
push 4
mov edi, ebx
call fcn.00401e2a
lea esi, [esp + 0x30]
call fcn.00401a81
lea esi, [esp + 0x14]
call fcn.004029e4
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00404555
mov esp, ebp
pop ebp
ret