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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x449228
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
call fcn.004028c0
mov eax, dword [0x458a2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x458a2c
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x90], ebp
mov dword [esp + 0x1c], ebx
lea ebx, [ebx]
mov ecx, dword [ebx*4 + 0x4596b4]
cmp ecx, ebp
je 0x402181
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
test eax, eax
je 0x402181
mov ecx, dword [ebx*4 + 0x4596b4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
test eax, eax
je 0x402181
mov ecx, dword [ebx*4 + 0x4596b4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
test eax, eax
je 0x402181
mov ecx, dword [ebx*4 + 0x4596b4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test eax, eax
jne 0x402181
mov ecx, dword [ebx*4 + 0x4596b4]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
test eax, eax
je 0x402181
mov ecx, dword [ebx*4 + 0x4596b4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
call edx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x58]
push ecx
mov byte [esp + 0x98], 1
push ebx
mov dword [esp + 0x24], 0xffffffff
call fcn.00405830
mov eax, dword [esp + 0x64]
add esp, 0xc
cmp eax, ebp
je 0x402170
mov edx, dword [esp + 0x5c]
sub edx, eax
sar edx, 3
je 0x402170
mov edi, dword [esp + 0x18]
cmp edi, ebp
jl 0x402170
lea esi, [esp + 0x44]
call fcn.004021e0
lea esi, [esp + 0x38]
call fcn.00402290
lea esi, [esp + 0x14]
call fcn.00401700
mov byte [esp + 0x90], 4
lea esi, [esp + 0x54]
mov dword [esp + 0x44], ebp
call fcn.00402ae0
lea edi, [esp + 0x48]
call fcn.00402e30
mov eax, edi
push 1
push eax
push ebx
lea edi, [esp + 0x20]
call fcn.00405f70
mov esi, eax
mov eax, edi
add esp, 0xc
lea edi, [esp + 0x4c]
call fcn.00402e30
mov edx, 0x44da60
lea edi, [esp + 0x50]
call fcn.004018b0
cmp esi, ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebp
je 0x401fc4
mov ecx, dword [ebx*4 + 0x4596b4]
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 ebx
lea edi, [esp + 0x20]
call fcn.00405f70
mov esi, eax
mov eax, edi
add esp, 0xc
lea edi, [esp + 0x4c]
call fcn.00402e30
cmp esi, ebp
je 0x402001
mov ecx, dword [ebx*4 + 0x4596b4]
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], ebp
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
lea esi, [esp + 0x30]
lea edi, [esp + 0x54]
mov byte [esp + 0x90], 6
call fcn.00402ac0
mov esi, dword [eax]
mov ebp, dword [eax + 4]
mov dword [esp + 0x28], esi
lea ebx, [ebx]
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x58], eax
mov edi, eax
jbe 0x402051
call fcn.0042e792
test esi, esi
je 0x40205d
lea eax, [esp + 0x54]
cmp esi, eax
je 0x402062
call fcn.0042e792
cmp ebp, edi
je 0x4020d3
test esi, esi
jne 0x40206f
call fcn.0042e792
cmp ebp, dword [esi + 8]
jb 0x402079
call fcn.0042e792
mov eax, ebp
lea edi, [esp + 0x48]
call fcn.00402e30
cmp ebp, dword [esi + 8]
jb 0x40208e
call fcn.0042e792
lea eax, [ebp + 4]
lea edi, [esp + 0x4c]
call fcn.00402e30
lea ebx, [esp + 0x44]
lea esi, [esp + 0x74]
call fcn.00402b60
lea ecx, [esp + 0x38]
push ecx
lea esi, [esp + 0x68]
call fcn.00402c20
mov edx, dword [esp + 0x28]
cmp ebp, dword [edx + 8]
jb 0x4020c3
call fcn.0042e792
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
add ebp, 8
jmp 0x402040
mov ecx, dword [ebx*4 + 0x4596b4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x64]
push edx
mov edx, dword [esp + 0x1c]
push edx
lea edx, [esp + 0x7c]
push edx
call eax
lea esi, [esp + 0x64]
call fcn.00402be0
lea esi, [esp + 0x74]
call fcn.00402b00
mov byte [esp + 0x90], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40212a
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 0x402152
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x44]
call fcn.00402230
lea esi, [esp + 0x54]
mov byte [esp + 0x90], 0
call fcn.00402a80
xor ebp, ebp
jmp 0x402181
lea esi, [esp + 0x54]
mov byte [esp + 0x90], 0
call fcn.00402a80
add ebx, 1
cmp ebx, 3
mov dword [esp + 0x1c], ebx
jl 0x401e60
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 0x4021bc
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