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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x652a35
sub esp, 0x7c
mov edx, dword [esp + 0x88]
cmp edx, 0xa
jg 0x6524f8
cmp edx, 6
jne 0x6523a7
mov ebx, dword [esp + 0x84]
cmp dword [ebx], 0x76726553
jne 0x652619
cmp word [ebx + 4], 0x7265
jne 0x652619
nop
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x50]
mov edx, dword [eax + 0x54]
mov eax, dword [eax + 0x58]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], eax
add esp, 0x7c
ret
cmp edx, 7
jne 0x652411
mov ebx, dword [esp + 0x84]
cmp dword [ebx], 0x69617254
jne 0x652619
cmp word [ebx + 4], 0x656c
jne 0x652619
cmp byte [ebx + 6], 0x72
jne 0x652619
mov edx, dword [0x70785c]
mov dword [esp + 0x30], edx
mov ebx, dword [0x707858]
mov dword [esp + 0x64], ebx
mov ebp, dword [esp + 0x80]
mov ecx, dword [ebp + 0x78]
mov dword [esp + 0x40], ecx
mov ebp, dword [ebp + 0x74]
mov dword [esp + 0x74], ebp
xor eax, eax
xor esi, esi
xor edi, edi
xor eax, eax
mov dword [esp + 0x5c], eax
xor eax, eax
jmp 0x6528d6
cmp edx, 0xa
jne 0x65250b
mov eax, dword [esp + 0x84]
mov dword [esp], eax
lea ecx, [0x76ab88]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0xa
call fcn.00403310
movzx eax, byte [esp + 0xc]
test al, al
je 0x652493
mov edx, dword [esp + 0x80]
movzx ebx, byte [edx + 2]
test bl, bl
jne 0x652468
mov ebx, dword [edx + 0x68]
mov dword [esp + 0x6c], ebx
mov ecx, dword [edx + 0x6c]
mov dword [esp + 0x38], ecx
xor eax, eax
jmp 0x652837
mov eax, dword [str.close]
mov ecx, dword [0x70774c]
mov edx, dword [0x707750]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
add esp, 0x7c
ret
mov eax, dword [esp + 0x84]
mov dword [esp], eax
lea ecx, [0x76ad36]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0xa
call fcn.00403310
movzx eax, byte [esp + 0xc]
test al, al
jne 0x6524d0
mov edx, dword [esp + 0x88]
mov ebx, dword [esp + 0x84]
jmp 0x652619
mov edx, dword [esp + 0x80]
mov ecx, dword [edx + 0xa0]
mov dword [esp + 0x3c], ecx
mov edx, dword [edx + 0x9c]
mov dword [esp + 0x70], edx
xor eax, eax
xor ebx, ebx
xor ebp, ebp
xor esi, esi
jmp 0x652715
cmp edx, 0xc
je 0x6525e1
cmp edx, 0xe
je 0x65257e
cmp edx, 0x10
je 0x652517
mov ebx, dword [esp + 0x84]
jmp 0x652619
mov eax, dword [esp + 0x84]
mov dword [esp], eax
lea ecx, [0x76c910]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x10
call fcn.00403310
movzx eax, byte [esp + 0xc]
test al, al
jne 0x652554
mov edx, dword [esp + 0x88]
mov ebx, dword [esp + 0x84]
jmp 0x652619
nop
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x48]
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], eax
add esp, 0x7c
ret
mov eax, dword [esp + 0x84]
mov dword [esp], eax
lea ecx, [0x76bdef]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0xe
call fcn.00403310
movzx eax, byte [esp + 0xc]
test al, al
jne 0x6525b8
mov edx, dword [esp + 0x88]
mov ebx, dword [esp + 0x84]
jmp 0x652619
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x28]
mov edx, dword [eax + 0x2c]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], eax
add esp, 0x7c
ret
mov eax, dword [esp + 0x84]
mov dword [esp], eax
lea ecx, [0x76b3a8]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0xc
call fcn.00403310
movzx eax, byte [esp + 0xc]
test al, al
jne 0x652632
mov edx, dword [esp + 0x88]
mov ebx, dword [esp + 0x84]
mov ebp, dword [esp + 0x80]
mov esi, dword [ebp + 0x68]
mov dword [esp + 0x68], esi
mov ecx, dword [ebp + 0x6c]
mov dword [esp + 0x34], ecx
xor eax, eax
jmp 0x65267b
nop
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + 0x38]
mov ebx, dword [eax + 0x40]
movzx eax, byte [eax + 3]
test al, al
jne 0x652661
test ecx, ecx
jne 0x652661
mov edx, dword [str.text_plain__charsetutf_8]
mov ecx, dword [0x70764c]
mov ebx, dword [0x707650]
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], ebx
add esp, 0x7c
ret
inc eax
cmp eax, ecx
jge 0x6526e9
jae 0x652708
imul ebp, eax, 0x1c
mov dword [esp + 0x58], ebp
mov edi, dword [ebp + esi + 4]
mov ebp, dword [ebp + esi]
cmp edx, edi
je 0x65269c
xor ebp, ebp
jmp 0x6526d1
mov dword [esp + 0x44], eax
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edi
call fcn.00403310
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x88]
mov ebx, dword [esp + 0x84]
mov esi, dword [esp + 0x68]
mov ebp, eax
mov eax, dword [esp + 0x44]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x65267a
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + esi + 0xc]
mov edx, dword [eax + esi + 0x10]
mov eax, dword [eax + esi + 0x14]
jmp 0x6526ef
xor eax, eax
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], eax
add esp, 0x7c
ret
call fcn.00456b40
mov edi, dword [esp + 0x70]
mov ebp, edx
mov edx, edi
cmp eax, ecx
jge 0x652818
jae 0x652831
mov dword [esp + 0x4c], eax
imul edi, eax, 0x1c
mov ecx, dword [edx + edi + 0x10]
lea eax, [ecx + ebp]
mov edi, dword [edx + edi + 0xc]
cmp ebx, eax
jae 0x65277b
mov dword [esp + 0x24], ebp
mov dword [esp + 0x58], ecx
mov dword [esp + 0x78], edi
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
lea eax, [0x734860]
mov dword [esp + 0x10], eax
call fcn.00442820
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x58]
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x78]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x60], esi
lea edx, [ebp + esi]
mov dword [esp], edx
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
call fcn.00457450
mov eax, dword [esp + 0x4c]
inc eax
mov ecx, dword [esp + 0x3c]
cmp ecx, eax
jle 0x652807
mov edx, dword [esp + 0x24]
add edx, 2
mov ebx, dword [esp + 0x2c]
cmp ebx, edx
jb 0x6527bd
mov esi, dword [esp + 0x60]
jmp 0x6527fb
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 2
lea eax, [0x734860]
mov dword [esp + 0x10], eax
call fcn.00442820
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x3c]
mov word [edx + esi - 2], 0x203b
jmp 0x65270d
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x60]
jmp 0x65270d
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], ebp
mov dword [esp + 0x98], ebx
add esp, 0x7c
ret
call fcn.00456b40
inc eax
cmp eax, ecx
jge 0x65289a
jae 0x6528b9
imul edx, eax, 0x1c
mov ebp, dword [edx + ebx + 4]
mov esi, dword [edx + ebx]
cmp ebp, 0xa
je 0x652850
xor ebp, ebp
jmp 0x652886
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], edx
mov dword [esp], esi
mov eax, dword [esp + 0x84]
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
call fcn.00403310
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x6c]
mov ebp, eax
mov eax, dword [esp + 0x50]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x652836
mov eax, dword [edx + ebx + 0xc]
mov ecx, dword [edx + ebx + 0x10]
mov edx, dword [edx + ebx + 0x14]
jmp 0x6528a0
xor edx, edx
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
add esp, 0x7c
ret
call fcn.00456b40
mov esi, dword [esp + 0x74]
mov esi, ebx
mov edi, edx
mov dword [esp + 0x5c], ebp
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x74]
cmp eax, ecx
jge 0x652a12
jae 0x652a2f
mov dword [esp + 0x48], eax
imul ebx, eax, 0x1c
mov edx, dword [ebp + ebx + 4]
lea ecx, [edx + edi]
mov ebx, dword [ebp + ebx]
cmp esi, ecx
jae 0x652944
mov dword [esp + 0x20], edi
mov dword [esp + 0x58], edx
mov dword [esp + 0x78], ebx
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
lea eax, [0x734860]
mov dword [esp + 0x10], eax
call fcn.00442820
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x78]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x5c]
lea ebp, [edi + eax]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.00457450
mov eax, dword [esp + 0x48]
inc eax
mov ecx, dword [esp + 0x40]
cmp ecx, eax
jg 0x652981
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x5c]
jmp 0x6528be
mov dword [esp + 0x54], eax
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x30]
lea ebp, [ebx + edx]
mov esi, dword [esp + 0x28]
cmp esi, ebp
jb 0x65299e
mov edi, dword [esp + 0x5c]
jmp 0x6529d6
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebx
lea eax, [0x734860]
mov dword [esp + 0x10], eax
call fcn.00442820
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x30]
mov edi, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x5c], edi
lea eax, [edx + edi]
mov dword [esp], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.00457450
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x5c]
jmp 0x6528be
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], esi
add esp, 0x7c
ret
call fcn.00456b40
nop
call fcn.00455690
jmp fcn.00652330