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

Disassembly:
mov ecx, dword [0x9ec7ac]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x6528e6
sub esp, 0x68
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x6c]
movzx ebx, byte [eax + 0x7c]
test bl, bl
je 0x651ff5
mov dword [esp + 0x3c], 1
jmp 0x651ffd
mov dword [esp + 0x3c], 0
mov ebx, dword [esp + 0x3c]
and ebx, 7
mov ebp, dword [esp + 0x74]
mov esi, ebp
shl ebp, 3
or ebp, ebx
nop
mov dword [esp + 0x3c], ebp
cmp esi, 8
jl 0x652032
cmp esi, 0x20
jge 0x652025
mov ebx, dword [eax + 0x38]
test ebx, ebx
je 0x652032
movzx ebx, byte [esp + 0x7c]
test bl, bl
je 0x652171
and ebp, 0xfffff9
nop
mov dword [esp + 0x3c], ebp
mov ecx, dword [eax + 0x60]
mov edx, dword [eax + 0x5c]
add edx, 3
mov ebx, dword [eax + 0x58]
cmp ecx, edx
jae 0x65208b
mov dword [esp + 0x48], ebp
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 3
lea eax, [0x6e4500]
mov dword [esp + 0x10], eax
call fcn.0044e230
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x6c]
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x74]
xchg ebp, eax
mov byte [edx + ebx - 3], al
xchg ebp, eax
shr ebp, 8
mov word [edx + ebx - 2], bp
mov dword [eax + 0x5c], edx
mov dword [eax + 0x60], ecx
mov ebp, dword [0x9eca70]
lea edi, [esi + edx]
test ebp, ebp
je 0x6520c1
mov ebp, edi
call fcn.00468460
mov dword [edi], ebx
mov esi, dword [eax + 0x58]
mov dword [edi + 4], esi
mov esi, dword [esp + 0x74]
mov edi, ebp
mov dword [eax + 0x58], ebx
cmp ecx, edi
jae 0x6520fe
mov dword [esp + 0x30], edx
mov dword [esp], ebx
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
lea eax, [0x6e4500]
mov dword [esp + 0x10], eax
call fcn.0044e230
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x74]
mov dword [esp + 0x44], edi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x40], ecx
lea eax, [ebx + edx]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.00468df0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x6c]
mov dword [ecx + 0x5c], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 0x60], eax
mov eax, dword [0x9eca70]
test eax, eax
jne 0x652143
mov eax, dword [esp + 0x64]
jmp 0x652154
call fcn.00468460
mov eax, dword [esp + 0x64]
mov dword [edi], eax
mov edx, dword [ecx + 0x58]
mov dword [edi + 4], edx
mov dword [ecx + 0x58], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x68
ret
mov ebx, dword [eax + 0x38]
test ebx, ebx
je 0x652288
mov dword [esp + 0x60], ebx
mov ebp, dword [eax + 0x34]
mov dword [esp + 0x54], ebp
mov edi, dword [ebp + 0x450]
cmp dword [ebx + 0x44c], edi
jle 0x6521fd
lea eax, [0x6fcd80]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x100
call fcn.0044e0b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x54]
mov dword [ecx + 0x44c], 0
mov dword [ecx + 0x450], 0x100
mov edx, dword [0x9eca70]
test edx, edx
je 0x6521e9
call fcn.00468460
mov dword [edi], eax
mov ebx, dword [ecx + 0x448]
mov dword [edi + 4], ebx
mov dword [ecx + 0x448], eax
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x60]
mov ebp, ecx
mov esi, dword [esp + 0x74]
mov edx, dword [ebp + 0x450]
mov ecx, dword [ebx + 0x44c]
cmp ecx, edx
ja 0x6528e0
mov dword [ebp + 0x44c], ecx
mov edx, dword [ebx + 0x44c]
cmp edx, ecx
jl 0x652223
mov edx, ecx
mov ecx, dword [ebp + 0x448]
mov edi, dword [ebx + 0x448]
cmp ecx, edi
je 0x652256
mov dword [esp], ecx
mov dword [esp + 4], edi
shl edx, 2
mov dword [esp + 8], edx
call fcn.00468df0
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x54]
mov esi, dword [esp + 0x74]
movzx ecx, byte [ebx + 0x446]
mov byte [ebp + 0x446], cl
mov ecx, dword [eax + 0x34]
mov byte [ecx + 0x43a], 0
mov ecx, dword [0x9eca70]
test ecx, ecx
je 0x652281
mov ecx, dword [eax + 0x38]
call fcn.00468450
mov dword [edi], ecx
mov dword [eax + 0x38], 0
cmp esi, 0x400
jge 0x6522fe
cmp esi, 0x20
jg 0x6522b2
mov ecx, dword [0x9a44b0]
mov edx, dword [0x9a44b4]
mov ebx, 0
mov ebp, 0
mov edi, 0
jmp 0x6522f5
mov ecx, dword [eax + 0x34]
mov edx, dword [esp + 0x70]
mov dword [esp], edx
mov dword [esp + 4], esi
mov ebx, dword [esp + 0x78]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
call fcn.0063e220
movzx eax, byte [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x74]
cmp esi, 0x20
mov edi, ebx
mov ebx, eax
mov eax, dword [esp + 0x6c]
xchg esi, ebx
setg bl
xchg esi, ebx
jmp 0x652338
mov ecx, dword [eax + 0x34]
mov edx, dword [esp + 0x70]
mov dword [esp], edx
mov dword [esp + 4], esi
mov ebx, dword [esp + 0x78]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
call fcn.0063e320
movzx ebx, byte [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x6c]
xor esi, esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x38], ecx
xchg esi, eax
mov byte [esp + 0x29], al
xchg esi, eax
mov byte [esp + 0x2a], bl
cmp dword [0x9a44b0], ecx
jne 0x6524e4
mov eax, dword [0x9a44b4]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00404340
movzx eax, byte [esp + 0xc]
test al, al
je 0x6524c6
mov eax, dword [esp + 0x3c]
and eax, 0xfffff9
nop
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + 0x60]
mov ebx, dword [ecx + 0x5c]
add ebx, 3
mov ebp, dword [ecx + 0x58]
cmp edx, ebx
jae 0x6523dd
mov dword [esp + 0x48], eax
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 3
lea eax, [0x6e4500]
mov dword [esp + 0x10], eax
call fcn.0044e230
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x6c]
mov byte [ebx + ebp - 3], al
shr eax, 8
mov word [ebx + ebp - 2], ax
mov dword [ecx + 0x5c], ebx
mov dword [ecx + 0x60], edx
mov eax, dword [0x9eca70]
mov esi, dword [esp + 0x74]
lea edi, [esi + ebx]
test eax, eax
je 0x652415
mov eax, edi
call fcn.00468460
mov dword [edi], ebp
mov esi, dword [ecx + 0x58]
mov dword [edi + 4], esi
mov esi, dword [esp + 0x74]
mov edi, eax
mov dword [ecx + 0x58], ebp
cmp edx, edi
jae 0x652452
mov dword [esp + 0x2c], ebx
mov dword [esp], ebp
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
lea eax, [0x6e4500]
mov dword [esp + 0x10], eax
call fcn.0044e230
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x74]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], edi
lea eax, [ebp + ebx]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.00468df0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x6c]
mov dword [ecx + 0x5c], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 0x60], eax
mov eax, dword [0x9eca70]
test eax, eax
jne 0x652498
mov eax, dword [esp + 0x64]
jmp 0x6524a9
call fcn.00468460
mov eax, dword [esp + 0x64]
mov dword [edi], eax
mov edx, dword [ecx + 0x58]
mov dword [edi + 4], edx
mov dword [ecx + 0x58], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x68
ret
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x5c]
movzx ebx, byte [esp + 0x2a]
mov ebp, dword [esp + 0x34]
movzx esi, byte [esp + 0x29]
mov edi, dword [esp + 0x58]
cmp dword [0x9a44b8], ecx
jne 0x652649
mov eax, dword [0x9a44bc]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00404340
movzx eax, byte [esp + 0xc]
test al, al
je 0x65262b
mov eax, dword [esp + 0x3c]
and eax, 0xfffff9
or eax, 2
nop
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + 0x60]
mov ebx, dword [ecx + 0x5c]
add ebx, 3
mov ebp, dword [ecx + 0x58]
cmp edx, ebx
jae 0x652572
mov dword [esp + 0x48], eax
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 3
lea eax, [0x6e4500]
mov dword [esp + 0x10], eax
call fcn.0044e230
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x6c]
mov byte [ebx + ebp - 3], al
shr eax, 8
mov word [ebx + ebp - 2], ax
mov dword [ecx + 0x5c], ebx
mov dword [ecx + 0x60], edx
mov eax, dword [0x9eca70]
test eax, eax
je 0x65259b
call fcn.00468460
mov dword [edi], ebp
mov eax, dword [ecx + 0x58]
mov dword [edi + 4], eax
mov dword [ecx + 0x58], ebp
lea eax, [ebx + 1]
mov ebx, dword [esp + 0x70]
movzx ebx, byte [ebx]
cmp edx, eax
jae 0x65260a
mov byte [esp + 0x2b], bl
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x6e4500]
mov dword [esp + 0x10], eax
call fcn.0044e230
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x6c]
mov dword [ebx + 0x60], eax
mov eax, dword [0x9eca70]
test eax, eax
je 0x6525fc
call fcn.00468460
mov dword [edi], ecx
mov eax, dword [ebx + 0x58]
mov dword [edi + 4], eax
mov dword [ebx + 0x58], ecx
mov eax, edx
mov ebp, ecx
mov ecx, ebx
movzx ebx, byte [esp + 0x2b]
mov dword [ecx + 0x5c], eax
mov byte [eax + ebp - 1], bl
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x68
ret
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x5c]
movzx ebx, byte [esp + 0x2a]
mov ebp, dword [esp + 0x34]
movzx esi, byte [esp + 0x29]
mov edi, dword [esp + 0x58]
test ecx, ecx
jne 0x6528ce
mov ecx, dword [eax + 0x34]
mov byte [ecx + 0x43a], 0
mov ecx, dword [esp + 0x3c]
and ecx, 0xfffff9
or ecx, 4
nop
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
test bl, bl
je 0x652693
mov dword [esp + 0x4c], 3
mov dword [esp + 0x50], 0
jmp 0x6526a4
nop
mov dword [esp + 0x4c], 2
mov dword [esp + 0x50], 0
lea eax, [esp + 0x4c]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x74]
mov dword [esp + 8], eax
xchg esi, eax
mov byte [esp + 0xc], al
xchg esi, eax
call fcn.00651740
mov eax, dword [esp + 0x50]
shr eax, 0x1c
mov ecx, dword [esp + 0x34]
lea eax, [eax + ecx + 1]
mov edx, dword [esp + 0x3c]
and edx, 7
shl eax, 3
or eax, edx
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x6c]
mov ebx, dword [edx + 0x60]
mov ebp, dword [edx + 0x5c]
add ebp, 3
mov esi, dword [edx + 0x58]
cmp ebx, ebp
jae 0x652733
mov dword [esp + 0x48], eax
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 3
lea eax, [0x6e4500]
mov dword [esp + 0x10], eax
call fcn.0044e230
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x6c]
mov byte [ebp + esi - 3], al
shr eax, 8
mov word [ebp + esi - 2], ax
mov dword [edx + 0x5c], ebp
mov dword [edx + 0x60], ebx
mov eax, dword [0x9eca70]
test eax, eax
je 0x65275c
call fcn.00468460
mov dword [edi], esi
mov eax, dword [edx + 0x58]
mov dword [edi + 4], eax
mov dword [edx + 0x58], esi
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.00651940
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x6c]
mov dword [ebx + 0x5c], ecx
mov dword [ebx + 0x60], eax
mov ebp, dword [0x9eca70]
mov esi, dword [esp + 0x34]
lea edi, [esi + ecx]
test ebp, ebp
je 0x6527bb
mov ebp, edi
call fcn.00468460
mov dword [edi], edx
mov esi, dword [ebx + 0x58]
mov dword [edi + 4], esi
mov esi, dword [esp + 0x34]
mov edi, ebp
mov dword [ebx + 0x58], edx
cmp eax, edi
jae 0x6527f8
mov dword [esp + 0x44], ecx
mov dword [esp], edx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
lea eax, [0x6e4500]
mov dword [esp + 0x10], eax
call fcn.0044e230
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x64], edx
add ecx, edx
mov dword [esp], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
call fcn.00468df0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x6c]
mov dword [ecx + 0x5c], eax
mov edx, dword [esp + 0x44]
mov dword [ecx + 0x60], edx
mov ebx, dword [0x9eca70]
test ebx, ebx
jne 0x65283c
mov ebx, dword [esp + 0x64]
jmp 0x65284d
call fcn.00468460
mov ebx, dword [esp + 0x64]
mov dword [edi], ebx
mov ebp, dword [ecx + 0x58]
mov dword [edi + 4], ebp
mov dword [ecx + 0x58], ebx
inc eax
cmp edx, eax
jae 0x6528ac
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x6e4500]
mov dword [esp + 0x10], eax
call fcn.0044e230
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x6c]
mov dword [ebx + 0x60], eax
mov eax, dword [0x9eca70]
test eax, eax
je 0x6528a1
call fcn.00468460
mov dword [edi], ecx
mov eax, dword [ebx + 0x58]
mov dword [edi + 4], eax
mov dword [ebx + 0x58], ecx
mov eax, edx
mov ebp, ecx
mov ecx, ebx
mov ebx, ebp
mov dword [ecx + 0x5c], eax
mov byte [eax + ebx - 1], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x68
ret
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
add esp, 0x68
ret
call fcn.00468500
nop
call fcn.00467050
jmp fcn.00651fc0