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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2fc
mov ecx, dword [ebp + 8]
shl eax, 4
add eax, dword [ecx + 0x10fc]
mov ecx, dword [ecx + 0x10f8]
mov dword [esp + 4], eax
mov eax, dword [eax]
imul eax, eax, 0x222
add eax, dword [ecx + 0xc]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], edi
je 0x65952f
jmp 0x659024
mov edi, dword [esp + 0xc]
mov eax, dword [ebp + 0xc]
cmp dword [edi + 4], eax
jg 0x659511
mov edx, dword [edi + 8]
add edx, eax
cmp edx, eax
jl 0x659511
cmp byte [edi + 0x42], bl
jne 0x659511
push 0x64
mov byte [edi + 0x42], 1
call fcn.0069e704
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x65905f
call fcn.004b05b0
push 0x64
push ebx
push esi
call fcn.006a1300
mov eax, dword [edi + 0x28]
mov dword [esi], eax
mov eax, dword [edi + 0x30]
add esp, 0xc
cmp eax, 2
mov dword [esi + 4], eax
jge 0x659082
mov dword [esi + 4], 2
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1001]
sub ecx, dword [edi + 0x2c]
sub ecx, dword [edi + 0x28]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0x1005]
sub edx, dword [edi + 0x34]
sub edx, dword [edi + 0x30]
cmp dword [0x73660c], ebx
mov dword [esi + 0xc], edx
mov eax, dword [eax + 0x1068]
mov dword [esp + 0x34], esi
mov dword [esp + 0x44], 1
mov dword [esp + 0x3c], ebx
mov ecx, dword [edi + 8]
lea edx, [esp + 0x34]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], edx
mov edx, dword [eax + 0x68]
mov ecx, dword [edi + 4]
mov eax, dword [eax + 0x6c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
jne 0x6590ea
call fcn.004085e0
mov ecx, dword [0x73660c]
mov ecx, dword [ecx + 0xa0]
cmp ecx, ebx
jne 0x659100
xor eax, eax
xor edx, edx
jmp 0x659122
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
push eax
mov eax, 0x3e8
push eax
mov eax, 1
push eax
mov eax, dword [esp + 0x24]
cdq
push edx
push eax
call ecx
add esp, 0x18
mov dword [esp + 0x50], eax
mov eax, 1
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
add edi, 0xc
lea eax, [esp + 0x20]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.00480a00
xor ecx, ecx
mov eax, 0x10
mov edx, 4
mul edx
seto cl
mov byte [esp + 0xf8], bl
neg ecx
or ecx, eax
push ecx
call fcn.0069c0de
mov ecx, dword [esp + 0x24]
mov edi, eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov edx, 1
add esp, 4
cmp eax, edx
mov dword [esp + 0x14], edi
je 0x6592a3
add eax, 0xfffffffe
cmp eax, edx
ja 0x65931b
cmp ecx, ebx
mov word [esp + 0x38], dx
mov eax, ecx
jne 0x659216
mov eax, 0x6bc0cc
push ebx
push ebx
push 0x104
lea ecx, [esp + 0x20c]
push ecx
push 0xffffffffffffffff
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov cl, byte [esp + 0x200]
xor eax, eax
cmp cl, bl
mov byte [esp + 0x303], bl
lea edi, [esp + 0x201]
je 0x65926a
nop
cmp eax, 0x103
jae 0x65926a
mov byte [esp + eax + 0xf8], cl
mov cl, byte [edi]
add eax, 1
add edi, 1
cmp cl, bl
jne 0x659250
mov edx, dword [esp + 0x18]
cmp dword [edx], 2
mov byte [esp + eax + 0xf8], bl
jne 0x659290
lea eax, [esp + 0xf8]
mov dword [esi + 0x54], 2
mov dword [esi + 0x58], eax
jmp 0x65931b
lea ecx, [esp + 0xf8]
mov dword [esi + 0x54], 3
mov dword [esi + 0x5c], ecx
jmp 0x65931b
mov word [esp + 0x38], bx
mov dword [esi + 0x54], edx
mov edx, dword [esp + 0xc]
mov dword [esi + 0x10], 4
cmp byte [edx + 0x38], bl
je 0x659538
xor eax, eax
mov ecx, 0xff000000
mov dword [edi + eax*4], ecx
add eax, 1
add ecx, 0xf
cmp eax, 0x10
jb 0x6592c6
mov eax, dword [edx + 0x3a]
mov ecx, dword [eax + 0x44]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], 0x40
mov edi, dword [edx + 0x3a]
mov ecx, edi
call fcn.004d1530
test al, al
jne 0x6592f6
xor eax, eax
jmp 0x659311
mov eax, dword [edi + 0x40]
cmp eax, ebx
jne 0x659301
xor eax, eax
jmp 0x659311
cmp dword [edi + 0x38], 1
jne 0x65930e
mov edx, dword [eax + 4]
mov eax, dword [edx]
jmp 0x659311
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x18], eax
cmp dword [0x73660c], ebx
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov esi, dword [eax + 0x110c]
mov edi, dword [eax + 0x1108]
mov dword [esp + 0x1c], edx
jne 0x659342
call fcn.004085e0
mov eax, dword [0x73660c]
mov eax, dword [eax + 0x80]
cmp eax, ebx
je 0x6594ea
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x38]
push ecx
push esi
push edi
push edx
call eax
mov edi, eax
add esp, 0x10
cmp edi, ebx
mov dword [esp + 0x1c], edi
jle 0x6594ea
mov eax, dword [esp + 0x18]
cmp dword [eax], 1
mov esi, dword [ebp + 8]
jne 0x6593e4
mov eax, dword [esi + 0x110c]
cmp eax, 6
jl 0x6593e4
lea edx, [eax - 6]
xor ecx, ecx
cmp edx, ebx
jle 0x6593e4
mov eax, dword [esi + 0x1108]
add eax, 2
lea ecx, [ecx]
cmp byte [eax - 2], 3
jne 0x6593c2
cmp byte [eax - 1], 3
jne 0x6593c2
cmp byte [eax], 0x7f
jne 0x6593c2
cmp byte [eax + 1], 4
jne 0x6593c2
cmp byte [eax + 2], 0xf0
jne 0x6593c2
cmp byte [eax + 3], bl
je 0x6593ce
add ecx, 1
add eax, 1
cmp ecx, edx
jl 0x6593a0
jmp 0x6593e4
mov edx, dword [esi + 0x1108]
mov byte [ecx + edx + 4], 0xf8
mov eax, dword [esi + 0x1108]
mov byte [ecx + eax + 5], 0x80
cmp dword [0x73660c], ebx
jne 0x6593f1
call fcn.004085e0
mov ecx, dword [0x73660c]
mov eax, dword [ecx + 0xa4]
cmp eax, ebx
je 0x65940e
lea edx, [esp + 0xa8]
push edx
call eax
add esp, 4
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x324]
cmp ecx, ebx
je 0x659480
mov esi, dword [ecx + 0x88]
cmp esi, ebx
mov ecx, dword [ecx + 0x8c]
jne 0x659437
cmp ecx, 0x80000000
je 0x659467
mov edx, dword [edx + 0xc]
mov edi, dword [edx + 0x2c]
mov edx, dword [edx + 0x28]
push edi
push edx
mov edx, dword [eax + 0x6c]
mov eax, dword [eax + 0x68]
push edx
push eax
push ecx
push esi
call fcn.006053a0
mov edi, dword [esp + 0x1c]
mov dword [esp + 0xb4], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0xb0], eax
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x324]
cmp dword [ecx + 0x54], ebx
mov esi, dword [ebp + 8]
je 0x659480
or dword [esp + 0xcc], 1
mov ecx, dword [edx]
add ecx, 2
mov dword [esp + 0xc8], ecx
mov ecx, dword [esi + 0x1108]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], edi
cmp dword [eax + 0x30], 0x17004
jne 0x6594dd
mov ecx, dword [edx + 0xc]
mov edx, dword [ecx + 0x2c]
mov ecx, dword [ecx + 0x28]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
push edx
push ecx
mov ecx, 0x3e8
push ecx
mov ecx, 1
cdq
push ecx
push edx
push eax
call fcn.006053a0
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], edx
lea edx, [esp + 0xa8]
push edx
call fcn.00658650
mov eax, dword [esp + 0x14]
push eax
call fcn.0069c8fa
mov ecx, dword [esp + 0x24]
add esp, 4
push ecx
call fcn.0069c8fa
add esp, 4
lea ecx, [esp + 0x58]
call fcn.004d0c50
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x30], 0x17004
jne 0x65952f
mov edi, dword [edi]
cmp edi, ebx
mov dword [esp + 0xc], edi
jne 0x659020
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
call fcn.0069c8fa
mov edx, dword [esp + 0x24]
add esp, 4
push edx
call fcn.0069c8fa
add esp, 4
lea ecx, [esp + 0x58]
call fcn.004d0c50
mov edi, dword [esp + 0xc]
jmp 0x659521