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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x50]
cmp eax, dword [ecx + 8]
jbe 0x421961
sub esp, 0xd0
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov dword [esp + 0x4c], eax
mov ecx, dword [eax + 0x18]
movsd xmm0, qword [0xa84990]
movsd qword [esp + 0x20], xmm0
inc dword [ecx + 0x78]
lea ecx, [0xa84930]
mov dword [esp], ecx
call fcn.00401ea0
mov eax, dword [esp + 4]
test eax, eax
jne 0x421879
lea eax, [0xa84934]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00401fb0
mov eax, dword [0xa8492c]
mov dword [esp + 0x10], eax
lea eax, [0xa848a0]
mov dword [esp], eax
call fcn.00421170
mov eax, dword [esp + 4]
mov dword [esp + 0x48], eax
test eax, eax
je 0x421858
lea ecx, [eax + 0x3b]
mov dword [esp], ecx
call fcn.00401e90
movzx eax, byte [esp + 4]
cmp al, 1
je 0x4215cd
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 0x30]
mov ebx, dword [esp + 0x10]
cmp ebx, edx
je 0x42157f
lea ebp, [ebx + 3]
cmp edx, ebp
je 0x42157f
jmp 0x421895
mov eax, dword [esp + 0x10]
lea ecx, [eax - 2]
mov edx, dword [esp + 0x48]
cmp dword [edx + 0x30], ecx
je 0x421830
xor ecx, ecx
test cl, cl
jne 0x4215eb
mov ebx, eax
jmp 0x42157f
test edx, edx
jne 0x4217ed
mov eax, 0xffffffff
mov dword [esp + 0x14], eax
lea ecx, [0xa84934]
mov dword [esp], ecx
mov dword [esp + 4], 0xffffffff
call fcn.00401fb0
mov eax, dword [esp + 8]
test eax, eax
je 0x4217d1
xor eax, eax
test al, al
jne 0x421640
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x18]
dec dword [eax + 0x78]
mov eax, dword [esp + 0x14]
mov dword [esp + 0xd4], eax
add esp, 0xd0
ret
lea eax, [0x7e6a88]
mov dword [esp], eax
call fcn.0045e670
nop
lea eax, [0xa7cd50]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402070
mov eax, dword [0xa936d4]
test eax, eax
jle 0x421624
lea edi, [esp + 0x88]
xor eax, eax
call fcn.0045ff7e
lea ecx, [0x7739a0]
mov dword [esp + 0x88], ecx
lea edx, [0x834d68]
mov dword [esp + 0x8c], edx
mov edx, dword [0xa96c84]
mov ebx, dword [0xa96c80]
mov ebp, edx
shl edx, 0xc
shr ebx, 0x14
or edx, ebx
mov dword [esp + 0x40], edx
shr ebp, 0x14
mov dword [esp + 0x44], ebp
lea edx, [0x773b60]
mov dword [esp + 0x90], edx
lea ebx, [esp + 0x40]
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ecx
lea ebx, [0x834d70]
mov dword [esp + 0x9c], ebx
mov ebx, dword [0xa96c80]
mov ebp, dword [0xa84988]
sub ebx, ebp
mov ebp, dword [0xa96c84]
mov esi, dword [0xa8498c]
sbb ebp, esi
mov esi, ebp
shl ebp, 0xc
shr ebx, 0x14
or ebp, ebx
mov dword [esp + 0x38], ebp
shr esi, 0x14
mov dword [esp + 0x3c], esi
mov dword [esp + 0xa0], edx
lea ebx, [esp + 0x38]
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ecx
lea ebx, [0x834d78]
mov dword [esp + 0xac], ebx
mov ebx, dword [0xa84978]
mov ebp, dword [0xa8497c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0xb0], edx
lea edx, [esp + 0x30]
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb8], ecx
lea edx, [0x834d80]
mov dword [esp + 0xbc], edx
movsd xmm0, qword [esp + 0x20]
movsd qword [esp + 0x28], xmm0
lea edx, [0x7721a0]
mov dword [esp + 0xc0], edx
lea edx, [esp + 0x28]
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], ecx
lea ecx, [0x834d88]
mov dword [esp + 0xcc], ecx
lea ecx, [esp + 0x88]
mov dword [esp], ecx
mov dword [esp + 4], 9
mov dword [esp + 8], 9
call fcn.00408350
jmp 0x421624
lea eax, [0xa84930]
mov dword [esp], eax
call fcn.00401ea0
mov eax, dword [esp + 4]
test eax, eax
setne al
jmp 0x421620
mov eax, dword [edx + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp], edx
mov byte [esp + 4], 0
call fcn.00421a80
movzx eax, byte [esp + 8]
test al, al
jne 0x421811
xor eax, eax
jmp 0x4215f8
lea eax, [0xa849a8]
mov dword [esp], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
call fcn.00401f30
mov eax, dword [esp + 0x14]
jmp 0x4215f8
lea ebx, [edx + 0x30]
mov dword [esp], ebx
mov dword [esp + 4], ecx
lea ecx, [eax - 1]
mov dword [esp + 8], ecx
call fcn.00401ec0
movzx ecx, byte [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x48]
jmp 0x4215e3
lea eax, [0xa84930]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402070
mov edx, dword [esp + 0x48]
test edx, edx
jmp 0x4215ed
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x18]
dec dword [eax + 0x78]
mov dword [esp + 0xd4], 0xffffffff
add esp, 0xd0
ret
lea edi, [esp + 0x50]
mov edx, eax
xor eax, eax
call fcn.0045ff82
lea ecx, [0x7739a0]
mov dword [esp + 0x50], ecx
lea ebp, [0x834d48]
mov dword [esp + 0x54], ebp
lea ebp, [0x7736e0]
mov dword [esp + 0x58], ebp
movzx edx, dl
lea ebp, [0x9e25c0]
lea edx, [ebp + edx*8]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ecx
lea edx, [0x834d50]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x48]
mov edx, dword [edx + 0x30]
mov dword [esp + 0x1c], edx
lea edx, [0x773b20]
mov dword [esp + 0x68], edx
lea ebp, [esp + 0x1c]
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ecx
lea ebp, [0x834d58]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x78], edx
lea edx, [esp + 0x18]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], ecx
lea ecx, [0x834d60]
mov dword [esp + 0x84], ecx
lea ecx, [esp + 0x50]
mov dword [esp], ecx
mov dword [esp + 4], 7
mov dword [esp + 8], 7
call fcn.00408350
lea ecx, [0x7d284e]
mov dword [esp], ecx
mov dword [esp + 4], 0x1f
call fcn.004333f0
nop
call fcn.0045e790
jmp fcn.00421500