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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x11c]
cmp eax, dword [ecx + 8]
jbe 0x65e178
sub esp, 0x19c
mov eax, 0
mov dword [esp + 0x198], eax
mov byte [esp + 0x2f], 0
mov dword [esp + 0x1bc], 0
mov dword [esp + 0x1c0], 0
mov dword [esp + 0x1c4], 0
mov edx, dword [esp + 0x1a4]
cmp dword [edx + 4], 4
jne 0x65dae3
mov ebx, dword [edx + 4]
mov ebp, dword [edx]
test ebx, ebx
jbe 0x65e162
cmp ebx, 1
jbe 0x65e156
cmp ebx, 2
jbe 0x65e14a
cmp ebx, 3
jbe 0x65e13e
cmp dword [ebp], 0x70747468
je 0x65db00
mov eax, dword [edx]
cmp dword [edx + 4], 5
jne 0x65daf9
cmp dword [eax], 0x70747468
jne 0x65daf9
cmp byte [eax + 4], 0x73
je 0x65db00
add esp, 0x19c
ret
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0065ea80
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x65dc71
mov dword [esp + 0x44], ecx
mov dword [esp + 0x60], eax
mov edx, dword [esp + 0x1a0]
mov ebx, dword [edx]
mov ebp, dword [edx + 4]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
call fcn.0065ecb0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x1a0]
lea ebx, [edx + 8]
mov dword [esp + 0x6c], ebx
mov dword [esp], ebx
call fcn.0046a440
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
lea eax, [0x65e2f0]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x198], eax
mov byte [esp + 0x2f], 1
mov eax, dword [esp + 0x1a0]
mov ecx, dword [eax + 0x10]
lea edx, [0x698a40]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 8], ecx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0xc], ebx
call fcn.0040fd30
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x65dc5a
mov ecx, dword [esp + 0x1a4]
mov edx, dword [ecx]
cmp dword [ecx + 4], 5
jne 0x65dbfc
cmp dword [edx], 0x70747468
jne 0x65dbfc
cmp byte [edx + 4], 0x73
sete dl
jmp 0x65dbfe
xor edx, edx
mov byte [esp + 0x2e], dl
mov ebx, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x1c]
test ebx, ebx
jne 0x65dc17
mov ebx, 1
lea ecx, [0x6cdabd]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x38], ebx
lea edi, [esp + 0x88]
mov edx, eax
xor eax, eax
call fcn.00463364
lea ecx, [0x698b00]
mov dword [esp], ecx
mov dword [esp + 4], edx
lea ebp, [esp + 0x88]
mov dword [esp + 8], ebp
call fcn.0040d490
xor eax, eax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
jmp 0x65dca8
mov byte [esp + 0x2f], 0
mov edx, dword [esp + 0x198]
mov eax, dword [edx]
call eax
add esp, 0x19c
ret
add esp, 0x19c
ret
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x50], ebx
mov byte [esp + 0x2d], al
lea ebp, [esp + 0x88]
mov dword [esp], ebp
call fcn.0040d6c0
movzx eax, byte [esp + 0x2d]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x50], ebx
mov ebp, dword [esp + 0x88]
test ebp, ebp
je 0x65dee2
mov byte [esp + 0x2d], al
mov esi, dword [esp + 0x8c]
test byte [esi], al
mov eax, dword [ebp]
mov dword [esp + 0x5c], eax
mov ebp, dword [ebp + 4]
mov dword [esp + 0x40], ebp
lea edi, [esp + 0x128]
call fcn.00463768
movzx ecx, byte [esp + 0x152]
test cl, cl
jne 0x65dcfa
xor ecx, ecx
jmp 0x65dd38
lea edi, [esp]
lea esi, [esp + 0x154]
call fcn.0046384e
lea edi, [esp + 0x14]
lea esi, [esp + 0x1a8]
call fcn.0046384e
call fcn.004ab3d0
movzx eax, byte [esp + 0x28]
xor eax, 1
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x40]
mov ecx, eax
mov eax, dword [esp + 0x5c]
test cl, cl
je 0x65dd70
lea ecx, [0x698b00]
mov dword [esp], ecx
mov edx, dword [esp + 0x4c]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebp
call fcn.00410770
mov eax, 1
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x50]
jmp 0x65dc78
lea eax, [esp + 0x128]
mov dword [esp], eax
movzx ecx, byte [esp + 0x2e]
mov byte [esp + 4], cl
mov edx, dword [esp + 0x60]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x44]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x38]
mov dword [esp + 0x14], esi
call fcn.0065d810
movzx eax, byte [esp + 0x18]
test al, al
jne 0x65ddc7
movzx eax, byte [esp + 0x2d]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x50]
jmp 0x65dc78
lea edi, [esp + 0x17c]
lea esi, [esp + 0x1a8]
call fcn.0046384e
lea eax, [0x698b00]
mov dword [esp], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x5c]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0xc], edx
call fcn.004103c0
mov edi, dword [esp + 0x10]
test byte [edi], al
mov eax, dword [0x90e260]
test eax, eax
jne 0x65de1e
lea esi, [esp + 0x128]
call fcn.00463768
jmp 0x65de3b
lea eax, [0x6bfd40]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x128]
mov dword [esp + 8], eax
call fcn.00410e50
mov eax, dword [esp + 0x30]
lea ecx, [eax + 1]
mov edx, dword [esp + 0x34]
cmp edx, ecx
jb 0x65de50
mov ebx, dword [esp + 0x50]
jmp 0x65de85
lea ebx, [0x6bfd40]
mov dword [esp], ebx
mov ebp, dword [esp + 0x50]
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
call fcn.0044b8c0
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], ecx
mov ebp, dword [0x90e260]
imul eax, eax, 0x70
lea edi, [ebx + eax]
test ebp, ebp
jne 0x65dea7
lea esi, [esp + 0x128]
call fcn.00463768
jmp 0x65ded4
mov dword [esp + 0x68], ebx
mov dword [esp + 0x48], edx
lea eax, [0x6bfd40]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x128]
mov dword [esp + 8], eax
call fcn.00410e50
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x68]
mov eax, 1
mov ecx, dword [esp + 0x30]
jmp 0x65dc78
test al, al
je 0x65df7b
mov eax, dword [esp + 0x4c]
mov ebp, dword [eax]
test ebp, ebp
jne 0x65df22
mov eax, dword [esp + 0x1a0]
mov eax, dword [eax + 0x10]
lea ecx, [0x698a40]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
call fcn.00410770
jmp 0x65df6f
mov eax, dword [esp + 0x1a0]
mov eax, dword [eax + 0x10]
lea ecx, [0x698a40]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
call fcn.004103c0
mov edi, dword [esp + 0x10]
test byte [edi], al
mov eax, dword [0x90e260]
test eax, eax
jne 0x65df66
mov eax, dword [esp + 0x4c]
mov dword [edi], eax
jmp 0x65df6f
mov eax, dword [esp + 0x4c]
call fcn.004630d0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x50]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00409260
mov eax, dword [esp + 0xc]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x65e190]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x7c], ecx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x80], edx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x84], ebx
lea ebx, [0x68e0c0]
mov dword [esp], ebx
mov dword [esp + 4], eax
lea eax, [esp + 0x78]
mov dword [esp + 8], eax
call fcn.00490490
mov eax, dword [esp + 0x30]
test eax, eax
je 0x65e007
mov ecx, dword [esp + 0x50]
xor edx, edx
jmp 0x65e029
mov byte [esp + 0x2f], 0
mov edx, dword [esp + 0x198]
mov eax, dword [edx]
call eax
add esp, 0x19c
ret
mov ebx, dword [esp + 0x68]
add ebx, 0x70
mov ecx, ebx
mov edx, eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x68], ecx
lea edi, [esp + 0xb8]
mov esi, ecx
call fcn.00463768
lea eax, [0x6bef40]
mov dword [esp], eax
call fcn.0040b800
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
mov dword [eax + 4], edx
mov edx, dword [0x90e260]
test edx, edx
jne 0x65e070
mov dword [eax], ecx
jmp 0x65e07b
mov edi, eax
mov eax, ecx
call fcn.004630d0
mov eax, edi
mov ecx, dword [esp + 0xc0]
mov ebx, dword [esp + 0xc4]
mov dword [eax + 0xc], ebx
mov ebx, dword [0x90e260]
test ebx, ebx
jne 0x65e09b
mov dword [eax + 8], ecx
jmp 0x65e0a9
lea edi, [eax + 8]
mov edx, eax
mov eax, ecx
call fcn.004630d0
mov eax, edx
mov ecx, dword [esp + 0x1c0]
mov ebx, dword [esp + 0x1bc]
mov ebp, dword [esp + 0x1c4]
mov edx, ecx
inc ecx
cmp ebp, ecx
jae 0x65e107
mov dword [esp + 0x64], eax
lea eax, [0x6a3c00]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
call fcn.0044b8c0
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c4], eax
mov dword [esp + 0x1bc], ebx
mov eax, dword [esp + 0x64]
mov edx, ecx
lea ecx, [edx + 1]
mov dword [esp + 0x1c0], ecx
mov ecx, dword [0x90e260]
lea edi, [ebx + edx*4]
test ecx, ecx
jne 0x65e123
mov dword [ebx + edx*4], eax
jmp 0x65e128
call fcn.004630d0
mov eax, dword [esp + 0x48]
inc eax
mov ecx, dword [esp + 0x30]
cmp ecx, eax
jg 0x65e01e
jmp 0x65e007
mov eax, 3
mov ecx, eax
call fcn.00463150
mov eax, 2
mov ecx, eax
call fcn.00463150
mov eax, 1
mov ecx, eax
call fcn.00463150
xor eax, eax
mov ecx, eax
call fcn.00463150
nop
call fcn.00436440
add esp, 0x19c
ret
call fcn.00461cc0
jmp fcn.0065da50