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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50cd93
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x53577c]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x53577c]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x10]
mov edi, ecx
mov ebx, edx
mov dword [esp + 0x1c], eax
cmp dword [eax + 0xc], esi
jbe 0x4019bc
call fcn.00453b08
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x20], ecx
cmp ecx, dword [eax + 0x10]
jbe 0x4019d3
call fcn.00453b08
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
push esi
push edx
mov edx, dword [esp + 0x28]
push edx
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00405190
mov eax, dword [edi + 0x14]
test eax, eax
jbe 0x401a55
xor esi, esi
cmp dword [ebx + 0x14], esi
jbe 0x401a55
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], 1
mov dword [esp + 0x44], esi
mov dword [esp + 0xb8], esi
cmp dword [edi + 0x18], 8
jb 0x401a33
mov edi, dword [edi + 4]
jmp 0x401a36
add edi, 4
push edi
lea eax, [esp + 0x48]
call fcn.004044a0
cmp eax, esi
je 0x401a5c
mov eax, dword [esp + 0x48]
cmp eax, esi
je 0x401a55
push eax
call fcn.00456987
add esp, 4
xor al, al
jmp 0x401e3b
mov eax, dword [ebx + 0x14]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00453339
mov edi, eax
mov eax, dword [ebx + 0x14]
add esp, 4
lea ecx, [edi + eax*2]
mov dword [esp + 0x20], edi
mov dword [esp + 0x3c], ecx
test edi, edi
jne 0x401a95
mov eax, dword [esp + 0x48]
test eax, eax
jmp 0x401a4a
cmp dword [ebx + 0x18], 8
jb 0x401aa0
mov ebx, dword [ebx + 4]
jmp 0x401aa3
add ebx, 4
push ebx
inc eax
push eax
push edi
call fcn.00453e3b
add esp, 0xc
lea edx, [esp + 0x64]
push edx
call fcn.00404d20
mov byte [esp + 0xb8], 1
mov esi, edi
mov dword [esp + 0x40], 0
jmp 0x401ad0
lea eax, [esp + 0x40]
push eax
push esi
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x70]
call fcn.004045e0
test eax, eax
je 0x401dea
lea ecx, [esp + 0x24]
call fcn.00404060
mov byte [esp + 0xb8], 2
xor esi, esi
nop
cmp esi, dword [esp + 0x64]
jae 0x401d97
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + esi*8]
mov eax, dword [eax + esi*8 + 4]
test ecx, ecx
je 0x401b62
test eax, eax
je 0x401b62
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x94]
call fcn.004042b0
lea edx, [esp + 0x8c]
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0xbc], 3
call fcn.00404190
lea ecx, [esp + 0x8c]
mov byte [esp + 0xb8], 2
call fcn.00404350
inc esi
cmp esi, 1
jl 0x401b00
mov edi, dword [esp + 0x1c]
mov esi, dword [edi + 0xc]
cmp esi, dword [edi + 0x10]
jbe 0x401b73
call fcn.00453b08
mov ebx, dword [edi]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
jmp 0x401b88
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov esi, dword [edi + 0x10]
cmp dword [edi + 0xc], esi
jbe 0x401b95
call fcn.00453b08
mov eax, dword [edi]
test ebx, ebx
je 0x401b9f
cmp ebx, eax
je 0x401ba4
call fcn.00453b08
cmp dword [esp + 0x18], esi
mov esi, dword [esp + 0x30]
je 0x401d1e
mov byte [esp + 0x13], 1
cmp esi, dword [esp + 0x34]
jbe 0x401bc2
call fcn.00453b08
mov ebx, dword [esp + 0x24]
mov edi, esi
jmp 0x401bd0
mov esi, dword [esp + 0x34]
cmp dword [esp + 0x30], esi
jbe 0x401bdf
call fcn.00453b08
test ebx, ebx
je 0x401be9
cmp ebx, dword [esp + 0x24]
je 0x401bee
call fcn.00453b08
cmp edi, esi
je 0x401caf
test ebx, ebx
jne 0x401c18
call fcn.00453b08
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x401c0b
call fcn.00453b08
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
jb 0x401c1c
mov esi, dword [eax]
jmp 0x401c1e
mov eax, dword [ebx]
jmp 0x401c01
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x401c4a
call fcn.00453b08
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x10]
jb 0x401c3f
call fcn.00453b08
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x18], 8
jb 0x401c4e
mov eax, dword [ecx + 4]
jmp 0x401c51
mov eax, dword [eax]
jmp 0x401c2d
lea eax, [ecx + 4]
push esi
push eax
call fcn.00504ecf
add esp, 8
test eax, eax
sete al
test al, al
jne 0x401c68
mov byte [esp + 0x13], al
test ebx, ebx
jne 0x401ca7
call fcn.00453b08
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x401c7d
call fcn.00453b08
mov eax, dword [esp + 0x14]
add edi, 0x1c
test eax, eax
jne 0x401cab
call fcn.00453b08
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x10]
jb 0x401c9d
call fcn.00453b08
add dword [esp + 0x18], 0x1c
jmp 0x401bd0
mov eax, dword [ebx]
jmp 0x401c73
mov eax, dword [eax]
jmp 0x401c8f
cmp byte [esp + 0x13], 0
je 0x401b80
mov esi, dword [esp + 0x40]
cmp esi, dword [esp + 0x3c]
jae 0x401da1
mov byte [esp + 0xb8], 1
mov eax, dword [esp + 0x30]
test eax, eax
je 0x401cfa
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x30]
push ecx
push edx
push eax
call fcn.00409b10
mov eax, dword [esp + 0x40]
push eax
call fcn.00453344
add esp, 0x14
mov ecx, dword [esp + 0x24]
xor eax, eax
push ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.00453344
mov edi, dword [esp + 0x24]
add esp, 4
jmp 0x401ad0
cmp esi, dword [esp + 0x34]
jbe 0x401d29
call fcn.00453b08
mov ebx, dword [esp + 0x24]
lea ecx, [ecx]
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x30], edi
jbe 0x401d3f
call fcn.00453b08
test ebx, ebx
je 0x401d49
cmp ebx, dword [esp + 0x24]
je 0x401d4e
call fcn.00453b08
cmp esi, edi
je 0x401cba
test ebx, ebx
jne 0x401d8f
call fcn.00453b08
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x401d6b
call fcn.00453b08
mov ecx, dword [esp + 0x1c]
push esi
call fcn.00404190
test ebx, ebx
jne 0x401d93
call fcn.00453b08
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x401d8a
call fcn.00453b08
add esi, 0x1c
jmp 0x401d30
mov eax, dword [ebx]
jmp 0x401d61
mov eax, dword [ebx]
jmp 0x401d80
push 0x80004005
call fcn.00401840
mov eax, dword [esp + 0x30]
test eax, eax
je 0x401dcb
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x30]
push ecx
push edx
push eax
call fcn.00409b10
mov eax, dword [esp + 0x40]
push eax
call fcn.00453344
add esp, 0x14
mov ecx, dword [esp + 0x24]
xor eax, eax
push ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.00453344
mov edi, dword [esp + 0x24]
add esp, 4
push edi
call fcn.00453eaa
mov eax, dword [esp + 0x7c]
xor esi, esi
add esp, 4
cmp eax, esi
je 0x401e06
push eax
call fcn.00456987
add esp, 4
mov edx, dword [esp + 0x74]
push edx
call fcn.00453eaa
mov eax, dword [esp + 0x74]
add esp, 4
push eax
mov dword [esp + 0x78], esi
call fcn.00453eaa
mov eax, dword [esp + 0x4c]
add esp, 4
mov dword [esp + 0x70], esi
cmp eax, esi
je 0x401e39
push eax
call fcn.00456987
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00453735
mov esp, ebp
pop ebp
ret