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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x450a38
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov eax, dword [0x460164]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
call fcn.00402d40
mov eax, dword [0x461acc]
mov edx, dword [eax + 0xc]
mov ecx, 0x461acc
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
xor ebx, ebx
mov dword [esp + 0x90], ebx
xor ebp, ebp
jmp 0x4022c0
mov ecx, dword [ebp*4 + 0x46274c]
cmp ecx, ebx
je 0x402630
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
test eax, eax
je 0x402630
mov ecx, dword [ebp*4 + 0x46274c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
test eax, eax
je 0x402630
mov ecx, dword [ebp*4 + 0x46274c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
test eax, eax
je 0x402630
mov ecx, dword [ebp*4 + 0x46274c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test eax, eax
jne 0x402630
mov ecx, dword [ebp*4 + 0x46274c]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
test eax, eax
je 0x402630
mov ecx, dword [ebp*4 + 0x46274c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
call edx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x58]
push ecx
mov byte [esp + 0x98], 1
push ebp
mov dword [esp + 0x28], 0xffffffff
call fcn.00406550
mov eax, dword [esp + 0x64]
add esp, 0xc
cmp eax, ebx
je 0x40261f
mov edx, dword [esp + 0x5c]
sub edx, eax
sar edx, 3
je 0x40261f
mov edi, dword [esp + 0x1c]
cmp edi, ebx
jl 0x40261f
lea esi, [esp + 0x44]
call fcn.00402680
lea esi, [esp + 0x38]
call fcn.00402730
lea esi, [esp + 0x18]
call fcn.00401a40
mov byte [esp + 0x90], 4
lea esi, [esp + 0x54]
mov dword [esp + 0x44], ebx
call fcn.004037c0
lea edi, [esp + 0x48]
call fcn.00403c60
mov eax, edi
push 1
push eax
push ebp
lea edi, [esp + 0x24]
call fcn.00407440
mov esi, eax
mov eax, edi
add esp, 0xc
lea edi, [esp + 0x4c]
call fcn.00403c60
mov edx, 0x454c34
lea edi, [esp + 0x50]
call fcn.00401c10
cmp esi, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
je 0x402424
mov ecx, dword [ebp*4 + 0x46274c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x48]
push eax
call edx
push 2
lea eax, [esp + 0x4c]
push eax
push ebp
lea edi, [esp + 0x24]
call fcn.00407440
mov esi, eax
mov eax, edi
add esp, 0xc
lea edi, [esp + 0x4c]
call fcn.00403c60
cmp esi, ebx
je 0x402461
mov ecx, dword [ebp*4 + 0x46274c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x48]
push eax
call edx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
lea esi, [esp + 0x30]
lea edi, [esp + 0x54]
mov byte [esp + 0x90], 6
call fcn.004037a0
mov esi, dword [eax]
mov ebx, dword [eax + 4]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
mov edi, edi
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x58], eax
mov edi, eax
jbe 0x4024b1
call fcn.00435b3c
test esi, esi
je 0x4024bd
lea eax, [esp + 0x54]
cmp esi, eax
je 0x4024c2
call fcn.00435b3c
cmp ebx, edi
je 0x402539
test esi, esi
jne 0x4024cf
call fcn.00435b3c
cmp ebx, dword [esi + 8]
jb 0x4024d9
call fcn.00435b3c
mov eax, ebx
lea edi, [esp + 0x48]
call fcn.00403c60
cmp ebx, dword [esi + 8]
jb 0x4024ee
call fcn.00435b3c
lea eax, [ebx + 4]
lea edi, [esp + 0x4c]
call fcn.00403c60
lea ebx, [esp + 0x44]
lea esi, [esp + 0x74]
call fcn.00403840
lea ecx, [esp + 0x38]
push ecx
lea esi, [esp + 0x68]
call fcn.00403930
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
cmp eax, dword [edx + 8]
jb 0x402527
call fcn.00435b3c
add dword [esp + 0x2c], 8
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
jmp 0x4024a0
mov ecx, dword [ebp*4 + 0x46274c]
mov esi, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x64]
push eax
push esi
lea eax, [esp + 0x7c]
push eax
call edx
mov eax, dword [esp + 0x58]
test eax, eax
je 0x40256b
mov ecx, dword [esp + 0x5c]
sub ecx, eax
sar ecx, 3
cmp esi, ecx
jb 0x402574
call fcn.00435b3c
mov eax, dword [esp + 0x58]
lea eax, [eax + esi*8]
lea edi, [esp + 0x48]
call fcn.00403c60
mov ecx, dword [ebp*4 + 0x46274c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x44]
call edx
mov ecx, dword [ebp*4 + 0x46274c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
mov edx, edi
push edx
call eax
lea esi, [esp + 0x64]
call fcn.004038c0
lea esi, [esp + 0x74]
call fcn.004037e0
mov byte [esp + 0x90], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4025d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 2
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402601
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x44]
call fcn.004026d0
lea esi, [esp + 0x54]
mov byte [esp + 0x90], 0
call fcn.00403760
xor ebx, ebx
jmp 0x402630
lea esi, [esp + 0x54]
mov byte [esp + 0x90], 0
call fcn.00403760
add ebp, 1
cmp ebp, 3
jl 0x4022c0
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402667
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret