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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x40
mov edi, edx
mov esi, ecx
mov dword [esp + 0x1c], esi
mov eax, dword [esi + 0x110]
mov ebx, dword [esi + 0x160]
lea ecx, [ebx + 0x68]
mov dword [esi + 0x110], 1
cmp dword [ebx + 0x68], 0
jne 0x659f5c
mov ebp, ecx
mov dword [esp + 0x20], eax
call fcn.00659d70
mov ecx, ebp
mov ebp, 1
test al, al
mov eax, dword [esp + 0x20]
je 0x65a380
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], eax
mov ebp, dword [esp + 0x54]
lea eax, [esi + 0x19c]
mov dword [esp + 0x18], eax
lea eax, [esi + 0x1a8]
mov dword [esp + 0x28], eax
lea eax, [ebx + 0x84]
mov dword [esp + 0x14], eax
lea eax, [ebx + 0x74]
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ebx
jmp 0x659fb0
lea ecx, [eax + 1]
mov edx, dword [esp + 0x34]
mov dword [edx], ecx
mov byte [eax], 0xa
mov ebp, dword [esp + 0x38]
lea eax, [esp + 0x38]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], edi
call dword [edi + 0x14]
lea ecx, [eax + 4]
cmp ecx, 0xe
ja case.default.0x659fd8
mov dword [esp + 0x24], ebp
xor ebp, ebp
jmp dword [ecx*4 + 0x7e6c48]
mov ebx, esi
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x34]
cmp dword [eax], 0
mov esi, dword [esp + 0x2c]
jne 0x65a29d
jmp 0x65a290
mov dword [esp + 0x24], ebp
cmp eax, 0x1c
jne case.0x659fd8.2
cmp byte [esi + 0x1e4], 0
jne 0x65a025
cmp dword [esi + 0x90], edi
je 0x65a367
mov ebp, dword [esp + 0x38]
mov eax, dword [edi + 0x40]
sub ebp, eax
add eax, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
cmp dword [eax], 0
mov ebx, dword [esp + 0x18]
jne 0x65a11f
jmp 0x65a110
mov ebx, dword [esp + 0x24]
add ebx, dword [edi + 0x40]
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x74]
cmp dword [ecx + 0x70], eax
jne 0x659fa0
mov ecx, dword [esp + 0x30]
call fcn.00659d70
mov ebp, 1
test al, al
je 0x65a376
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
jmp 0x659fa0
mov ebx, dword [esp + 0x24]
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [edi + 0x28]
test eax, eax
js 0x65a31d
lea ecx, [esp + 0x3c]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0065f270
mov esi, eax
xor ebx, ebx
test esi, esi
jle 0x65a0fd
nop word cs:[eax + eax]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x74]
cmp dword [ecx + 0x70], eax
jne 0x65a0e8
mov ecx, dword [esp + 0x30]
call fcn.00659d70
mov ebp, 1
test al, al
je 0x65a334
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov cl, byte [esp + ebx + 0x3c]
lea edx, [eax + 1]
mov ebp, dword [esp + 0x34]
mov dword [ebp], edx
mov byte [eax], cl
inc ebx
cmp ebx, esi
jl 0x65a0c0
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x38]
jmp 0x659fb0
mov ecx, ebx
call fcn.00659d70
test al, al
je 0x65a2ec
mov eax, dword [esi + 0x1a4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [edi + 0x38]
or eax, 1
cmp eax, 1
jne 0x65a110
cmp dword [esi + 0x1ac], 0
mov ebp, 1
je 0x65a376
mov eax, dword [esi + 0x1a8]
cmp eax, dword [esi + 0x1a4]
jne 0x65a180
mov ecx, ebx
call fcn.00659d70
test al, al
je 0x65a376
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
lea ecx, [eax + 1]
mov dword [esi + 0x1a8], ecx
mov byte [eax], 0
mov eax, dword [esi + 0x1ac]
test eax, eax
je 0x65a376
mov dword [esp], eax
mov dword [esp + 4], 0
mov ecx, esi
mov edx, dword [esp + 0x14]
call fcn.006593e0
mov ebp, eax
mov eax, dword [esi + 0x1ac]
mov dword [esi + 0x1a8], eax
test ebp, ebp
je 0x65a33a
cmp byte [ebp + 0x20], 0
jne 0x65a34e
cmp dword [ebp + 0x10], 0
mov ecx, dword [esp + 0x2c]
je 0x65a250
cmp dword [esi + 0x70], 0
je 0x65a23b
mov byte [ecx + 0x83], 0
mov byte [ebp + 0x20], 1
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov ebx, esi
mov esi, dword [ebx + 0x74]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], esi
mov esi, ebx
mov dword [esp + 4], 0
call dword [esi + 0x70]
test eax, eax
mov byte [ebp + 0x20], 0
mov ebp, 0x15
je 0x65a376
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x83], 0
jne 0x65a2d7
mov ecx, dword [esp + 0x2c]
mov al, byte [ecx + 0x82]
mov byte [ecx + 0x80], al
mov ebp, dword [esp + 0x38]
jmp 0x659fb0
mov byte [ebp + 0x20], 1
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
add ecx, eax
mov edx, dword [esi + 0xe0]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov ecx, esi
call fcn.00659f10
mov ecx, ebp
mov ebp, eax
mov byte [ecx + 0x20], 0
test ebp, ebp
je 0x65a2d7
jmp 0x65a376
mov ecx, dword [esp + 0x30]
call fcn.00659d70
test al, al
je 0x65a2e0
mov eax, dword [esi + 0x70]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [edi + 0x38]
or eax, 1
cmp eax, 1
jne 0x65a290
cmp dword [esi + 0x78], 0
mov ebp, 1
mov esi, ebx
je 0x65a376
mov ebp, dword [esp + 0x38]
jmp 0x659fb0
mov ebp, 1
mov esi, ebx
jmp 0x65a376
mov ebp, 1
jmp 0x65a376
mov ebp, 0x17
jmp 0x65a353
mov ebp, 4
jmp 0x65a353
mov ebp, 4
cmp dword [esi + 0x90], edi
jne 0x65a376
mov eax, dword [esp + 0x38]
mov dword [esi + 0x11c], eax
jmp 0x65a376
mov ebp, 0xe
cmp dword [esi + 0x90], edi
jne 0x65a330
mov dword [esi + 0x11c], ebx
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x1c]
jmp 0x65a376
mov ecx, dword [esp + 0x2c]
mov al, byte [ecx + 0x82]
mov byte [ecx + 0x80], al
xor ebp, ebp
jmp 0x65a376
mov ebp, 0xc
cmp dword [esi + 0x90], edi
jne 0x65a376
mov eax, dword [esp + 0x24]
mov dword [esi + 0x11c], eax
jmp 0x65a376
mov eax, dword [esp + 0x24]
mov dword [esi + 0x11c], eax
mov ebp, 0xa
mov eax, dword [esp + 0x20]
mov dword [esi + 0x110], eax
mov eax, ebp
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret