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

Disassembly:
push edi
push esi
push ebp
push ebx
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
sub esp, 0x64
mov eax, dword [esi + 0x4834]
lea edx, [esi + 4]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x4c], eax
mov dword [esp], edx
mov eax, dword [esp + 0x80]
mov dword [esp + 8], ecx
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x84]
mov ecx, dword [esi + 0x30]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x20]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
lea edx, [ebx + 0x2c]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
call fcn.006549e4
test eax, eax
jne 0x6574f4
mov edx, dword [esi + 0x34]
cmp edx, 2
je 0x657514
mov ebx, dword [ebx + 0x2c]
mov dword [esp + 0x44], ebx
xor ecx, ecx
mov eax, dword [esi + 0x30]
mov dword [esp + 0x40], ecx
test eax, eax
jle 0x6574f4
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x40]
cmp ecx, dword [eax + 0x37c0]
jge 0x6572f4
mov ecx, eax
mov eax, dword [esp + 0x40]
mov edi, dword [ecx + 0x37cc]
shl eax, 4
xor ebp, ebp
mov dword [esp + 0x54], eax
add eax, edi
mov ebx, dword [eax + 8]
test ebx, ebx
jle 0x657304
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx + edi + 4]
mov ecx, edx
xor edx, edx
test ecx, ecx
jle 0x6573a0
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x60], ebp
mov ebp, dword [esp + 0x78]
mov edi, dword [esp + 0x34]
cmp edi, ebx
jge 0x657382
mov esi, dword [esp + 0x38]
mov eax, edi
shl eax, 4
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x30]
cmp ecx, esi
jge 0x65735f
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x50], eax
add ebx, eax
mov dword [esp + 0x48], ebx
jmp 0x6572c7
mov edx, dword [ebp + 0x30]
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
imul edx, ecx
mov esi, edi
imul esi, dword [ebp + 0x3c]
add eax, esi
mov bl, byte [ebx + ecx*2]
inc ecx
mov byte [edx + eax], bl
mov esi, dword [esp + 0x38]
cmp ecx, esi
jl 0x6572c4
jmp 0x657354
mov eax, ecx
cmp eax, 3
jne 0x657304
cmp edx, 5
je 0x6573c4
mov ebp, dword [esp + 0x78]
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov eax, edx
mov edx, dword [esp + 0x58]
cmp eax, 2
je 0x6574fc
inc edi
inc ecx
cmp ecx, edx
jge 0x6574f4
test ecx, ecx
jle 0x6574d4
mov ebx, dword [ebp + 0x58]
cmp ebx, 4
je 0x657444
mov dword [esp + 0x44], edi
mov dword [esp + 0x58], edx
mov edx, eax
mov dword [esp + 0x40], ecx
jmp 0x65722f
mov eax, dword [esp + 0x50]
mov edx, dword [ebp + 0x30]
mov ebx, dword [esp + 0x3c]
inc edi
add eax, 0x10
cmp edi, ebx
jl 0x6572a2
mov eax, dword [ebp + 0x37cc]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x58], edx
add eax, esi
mov edx, dword [esp + 0x5c]
mov ecx, dword [eax + 4]
mov esi, dword [esp + 0x4c]
inc edx
add esi, 0x80
cmp edx, ecx
mov dword [esp + 0x4c], esi
jl 0x657285
mov ebp, dword [esp + 0x60]
mov ebx, dword [eax + 8]
inc ebp
cmp ebp, ebx
jl 0x65726f
mov eax, dword [esp + 0x78]
mov edx, dword [eax + 0x34]
jmp 0x657304
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
cmp ebp, eax
jge 0x65742a
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x78]
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
jl 0x6573f7
jmp 0x657416
mov edx, dword [esi + 0x30]
imul edx, ecx
inc ecx
mov eax, ebp
imul eax, dword [esi + 0x3c]
add eax, edi
mov byte [edx + eax], 0xff
mov ebx, dword [esp + 0x38]
cmp ecx, ebx
jl 0x6573f4
mov edx, dword [esi + 0x30]
mov eax, dword [esp + 0x3c]
inc ebp
cmp ebp, eax
jl 0x6573e0
mov eax, dword [esp + 0x78]
mov dword [esp + 0x44], edi
mov dword [esp + 0x58], edx
mov edx, dword [eax + 0x34]
mov eax, dword [esp + 0x4c]
add eax, 0x80
mov dword [esp + 0x4c], eax
jmp 0x657304
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
cmp esi, ebx
jge 0x657316
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x38]
mov ecx, ebx
mov ebx, dword [esp + 0x30]
cmp ebx, eax
jl 0x657477
jmp 0x6574b5
mov edx, dword [ebp + 0x30]
mov eax, dword [esp + 0x40]
cmp eax, 3
jge 0x657494
imul edx, ebx
mov eax, esi
imul eax, dword [ebp + 0x3c]
add eax, edi
mov cl, byte [edx + eax - 1]
mov byte [edx + eax], cl
jmp 0x6574a3
imul edx, ebx
mov eax, esi
imul eax, dword [ebp + 0x3c]
add eax, edi
mov byte [edx + eax], 0xff
inc ebx
mov edx, dword [esp + 0x38]
cmp ebx, edx
jl 0x657474
mov eax, edx
mov edx, dword [ebp + 0x30]
mov ecx, dword [esp + 0x3c]
inc esi
cmp esi, ecx
jl 0x65745e
mov ecx, dword [esp + 0x40]
mov eax, dword [ebp + 0x34]
jmp 0x657316
mov dword [esp + 0x44], edi
mov dword [esp + 0x58], edx
mov edx, eax
mov dword [esp + 0x40], ecx
jmp 0x65722f
add esp, 0x64
pop ebx
pop ebp
pop esi
pop edi
ret
mov ebx, dword [ebp + 0x58]
cmp ebx, 1
jne 0x65731f
dec edi
jmp 0x657320
mov eax, dword [esi + 0x58]
cmp eax, 1
jne 0x657213
mov ebx, dword [ebx + 0x2c]
add ebx, 2
mov dword [esp + 0x44], ebx
jmp 0x65721a