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

Disassembly:
mov ecx, dword [0x9ec7ac]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x14]
cmp eax, dword [ecx + 8]
jbe 0x631a53
sub esp, 0x94
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0x20]
mov ebx, dword [eax + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.0062fce0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
test eax, eax
jne 0x631606
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov ebx, dword [esp + 0x98]
mov ebp, dword [ebx + 0x1c]
mov esi, dword [ebx + 0x20]
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x30], edi
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
jmp 0x631693
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
cmp dword [0x9a3bd0], ecx
jne 0x631657
mov dword [esp + 0x68], edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
mov edx, dword [0x9a3bd4]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00404340
movzx eax, byte [esp + 0xc]
test al, al
je 0x63164f
mov eax, dword [0x9a3bd8]
mov edx, dword [0x9a3bdc]
jmp 0x631657
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], edx
add esp, 0x94
ret
mov ecx, dword [esp + 0x70]
lea ebp, [ecx + 0x10]
mov ecx, dword [esp + 0x34]
inc ecx
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
cmp edx, esi
jge 0x6317d3
mov dword [esp + 0x70], ebp
mov ecx, dword [ebp]
mov ebx, dword [ebp + 4]
mov esi, dword [ebp + 8]
mov ebp, dword [ebp + 0xc]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], ebp
cmp edx, edi
jae 0x631a49
mov dword [esp + 0x3c], ebp
shl edx, 4
lea edi, [eax + edx]
lea ebp, [eax + edx]
mov dword [esp + 0x6c], ebp
cmp dword [edi], ecx
sete cl
cmp dword [ebp + 4], ebx
sete bl
and ebx, ecx
test bl, bl
je 0x631706
lea edx, [eax + edx + 8]
cmp dword [edx], esi
sete dl
mov ebx, dword [esp + 0x3c]
cmp dword [ebp + 0xc], ebx
sete bl
and ebx, edx
test bl, bl
jne 0x63166c
lea edi, [esp + 0x7c]
xor eax, eax
call fcn.004686fa
mov ecx, dword [esp + 0x34]
mov dword [esp], ecx
call fcn.00409ce0
mov ecx, dword [esp + 4]
lea edx, [0x6e4340]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], ecx
lea ecx, [0x6fc180]
mov dword [esp], ecx
lea edx, [esp + 0x58]
mov dword [esp + 4], edx
call fcn.00409c10
mov ecx, dword [esp + 8]
lea edx, [0x6fc180]
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], ecx
mov dword [esp], edx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 4], ecx
call fcn.00409c10
mov ecx, dword [esp + 8]
lea edx, [0x6fc180]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], ecx
lea ecx, [0x73edc9]
mov dword [esp], ecx
mov dword [esp + 4], 0x1c
lea ecx, [esp + 0x7c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], 3
call fcn.004c3fd0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], edx
add esp, 0x94
ret
lea eax, [0x6e4500]
mov dword [esp], eax
mov dword [esp + 4], 0xc
mov dword [esp + 8], 0xc
call fcn.0044e0b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x98]
mov edx, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0xc
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x14], 0xc
call fcn.00473a30
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x63189c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
cmp dword [0x9a3bd0], ecx
jne 0x631887
mov dword [esp + 0x68], edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov edx, dword [0x9a3bd4]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00404340
movzx eax, byte [esp + 0xc]
test al, al
je 0x63187f
mov eax, dword [0x9a3bd8]
mov edx, dword [0x9a3bdc]
jmp 0x631887
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], edx
add esp, 0x94
ret
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov byte [esp + 0x54], 0
lea eax, [esp + 0x4c]
mov dword [esp], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0xc
mov dword [esp + 0xc], 0xc
call fcn.0062db50
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x631a2c
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea eax, [0x7078e0]
mov dword [esp], eax
lea ecx, [esp + 0x4c]
mov dword [esp + 4], ecx
call fcn.00409c10
mov eax, dword [esp + 8]
lea ecx, [0x7078e0]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov eax, dword [0x9a394c]
mov dword [esp], eax
mov dword [esp + 4], 2
mov dword [esp + 8], 0x200
lea eax, [0x7355d4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0xc
lea eax, [esp + 0x74]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 1
call fcn.00622060
movzx eax, byte [esp + 0x54]
mov ecx, dword [esp + 0x98]
cmp byte [ecx + 0x18], al
jne 0x6319f0
mov eax, dword [esp + 0x28]
add eax, 1
mov ecx, dword [esp + 0x2c]
adc ecx, 0
cmp dword [esp + 0x4c], eax
setne al
lea edx, [esp + 0x4c]
cmp dword [edx + 4], ecx
setne cl
or ecx, eax
test cl, cl
je 0x6319d3
lea eax, [0x6f2340]
mov dword [esp], eax
call fcn.0040c5b0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1e
lea ecx, [0x740038]
mov dword [eax], ecx
lea ecx, [0x7aaeb4]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
add esp, 0x94
ret
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
add esp, 0x94
ret
lea eax, [0x6f2340]
mov dword [esp], eax
call fcn.0040c5b0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1a
lea ecx, [0x73dc62]
mov dword [eax], ecx
lea ecx, [0x7aaeb4]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
add esp, 0x94
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
add esp, 0x94
ret
mov eax, edx
mov ecx, edi
call fcn.004684c0
nop
call fcn.00467050
jmp fcn.00631580