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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x9c]
push ebx
push ebp
mov ebp, dword [esp + 0xa0]
push esi
push edi
mov edi, dword [esp + 0xa4]
mov esi, ecx
mov dword [esp + 0x18], eax
xor eax, eax
xor ecx, ecx
test edi, edi
mov dword [esp + 0x54], esi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
jbe 0x4f8c05
jmp 0x4f8bf0
movzx eax, word [esi + ecx*2]
add word [esp + eax*2 + 0x58], 1
lea eax, [esp + eax*2 + 0x58]
add ecx, 1
cmp ecx, edi
jb 0x4f8bf0
mov ecx, dword [edx]
mov dword [esp + 0x14], ecx
mov ebx, 0xf
cmp word [esp + ebx*2 + 0x58], 0
jne 0x4f8c20
sub ebx, 1
cmp ebx, 1
jae 0x4f8c10
cmp ecx, ebx
mov dword [esp + 0x20], ebx
jbe 0x4f8c2e
mov dword [esp + 0x14], ebx
mov ecx, ebx
test ebx, ebx
jne 0x4f8c64
mov ecx, dword [ebp]
mov byte [esp + 0x10], 0x40
mov byte [esp + 0x11], 1
mov word [esp + 0x12], bx
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
add dword [ebp], 4
mov ecx, dword [ebp]
mov dword [ecx], eax
add dword [ebp], 4
mov dword [edx], 1
xor eax, eax
jmp 0x4f9046
mov eax, 1
lea esp, [esp]
cmp word [esp + eax*2 + 0x58], 0
jne 0x4f8cb4
cmp word [esp + eax*2 + 0x5a], 0
jne 0x4f8ca2
cmp word [esp + eax*2 + 0x5c], 0
jne 0x4f8ca7
cmp word [esp + eax*2 + 0x5e], 0
jne 0x4f8cac
cmp word [esp + eax*2 + 0x60], 0
jne 0x4f8cb1
add eax, 5
cmp eax, 0xf
jbe 0x4f8c70
jmp 0x4f8cb4
add eax, 1
jmp 0x4f8cb4
add eax, 2
jmp 0x4f8cb4
add eax, 3
jmp 0x4f8cb4
add eax, 4
cmp ecx, eax
jae 0x4f8cbc
mov dword [esp + 0x14], eax
mov edx, 1
mov ecx, edx
movzx edi, word [esp + ecx*2 + 0x58]
add edx, edx
sub edx, edi
js 0x4f8d86
add ecx, 1
cmp ecx, 0xf
jbe 0x4f8cc3
test edx, edx
jle 0x4f8cf5
cmp dword [esp + 0xa0], 0
je 0x4f8d86
cmp ebx, 1
jne 0x4f8d86
mov word [esp + 0x7a], 0
mov ecx, 2
mov dx, word [esp + ecx + 0x78]
add dx, word [esp + ecx + 0x58]
add ecx, 2
cmp ecx, 0x1e
mov word [esp + ecx + 0x78], dx
jb 0x4f8d01
mov ebx, dword [esp + 0xa4]
mov edi, dword [esp + 0x18]
xor ecx, ecx
test ebx, ebx
jbe 0x4f8d59
lea esp, [esp]
cmp word [esi + ecx*2], 0
je 0x4f8d52
movzx edx, word [esi + ecx*2]
movzx edx, word [esp + edx*2 + 0x78]
mov word [edi + edx*2], cx
movzx edx, word [esi + ecx*2]
add word [esp + edx*2 + 0x78], 1
lea edx, [esp + edx*2 + 0x78]
add ecx, 1
cmp ecx, ebx
jb 0x4f8d30
mov esi, dword [esp + 0xa0]
xor ebx, ebx
mov ecx, esi
sub ecx, ebx
lea edx, [ebx - 1]
je 0x4f8db6
sub ecx, 1
je 0x4f8d8e
mov dword [esp + 0x30], 0x606568
mov dword [esp + 0x34], 0x6065a8
mov dword [esp + 0x38], edx
jmp 0x4f8dc6
or eax, 0xffffffff
jmp 0x4f9046
mov ecx, 0x6064e8
sub ecx, 0x202
mov dword [esp + 0x30], ecx
mov ecx, 0x606528
sub ecx, 0x202
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], 0x100
jmp 0x4f8dc6
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], 0x13
mov ecx, dword [ebp]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], edx
mov edx, 1
shl edx, cl
cmp esi, 1
mov dword [esp + 0x2c], ebx
mov ebp, edx
lea ecx, [edx - 1]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x40], ecx
jne 0x4f8e02
cmp edx, 0x5b0
jae 0x4f9041
mov dword [esp + 0x24], edi
jmp 0x4f8e14
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x24]
movzx ecx, word [esi]
mov edi, dword [esp + 0x38]
mov dl, al
sub dl, bl
mov byte [esp + 0x11], dl
movzx edx, cx
cmp edx, edi
jge 0x4f8e3a
mov byte [esp + 0x10], 0
mov word [esp + 0x12], cx
jmp 0x4f8e67
jle 0x4f8e5b
movzx esi, word [esi]
mov ecx, dword [esp + 0x34]
add esi, esi
mov dl, byte [esi + ecx]
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x10], dl
mov dx, word [esi + ecx]
mov word [esp + 0x12], dx
jmp 0x4f8e67
mov byte [esp + 0x10], 0x60
mov word [esp + 0x12], 0
mov ecx, eax
sub ecx, ebx
mov edx, ebp
mov ebp, dword [esp + 0x2c]
mov esi, 1
shl esi, cl
mov ecx, ebx
shr ebp, cl
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x4c], edx
lea edi, [esi*4]
add ebp, edx
lea ecx, [ecx + ebp*4]
mov ebp, dword [esp + 0x10]
sub edx, esi
sub ecx, edi
test edx, edx
mov dword [ecx], ebp
jne 0x4f8e94
lea ecx, [eax - 1]
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0x2c]
test ecx, edx
je 0x4f8eb6
shr edx, 1
test ecx, edx
jne 0x4f8eb0
test edx, edx
je 0x4f8ec3
lea esi, [edx - 1]
and esi, ecx
add esi, edx
jmp 0x4f8ec5
xor esi, esi
add word [esp + eax*2 + 0x58], 0xffff
movzx ecx, word [esp + eax*2 + 0x58]
add dword [esp + 0x24], 2
test cx, cx
mov dword [esp + 0x2c], esi
jne 0x4f8ef8
cmp eax, dword [esp + 0x20]
je 0x4f8fb8
mov edx, dword [esp + 0x24]
movzx eax, word [edx]
mov ecx, dword [esp + 0x54]
movzx eax, word [ecx + eax*2]
cmp eax, dword [esp + 0x14]
jbe 0x4f8e10
mov edi, dword [esp + 0x40]
and edi, esi
cmp edi, dword [esp + 0x18]
mov dword [esp + 0x48], edi
je 0x4f8e10
test ebx, ebx
jne 0x4f8f1e
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
lea edx, [edx + ecx*4]
mov ecx, eax
sub ecx, ebx
mov dword [esp + 0x1c], edx
mov edx, 1
lea esi, [ebx + ecx]
shl edx, cl
cmp esi, dword [esp + 0x20]
jae 0x4f8f63
lea edi, [esp + esi*2 + 0x58]
movzx ebp, word [edi]
sub edx, ebp
test edx, edx
jle 0x4f8f5f
add esi, 1
add ecx, 1
add edi, 2
add edx, edx
cmp esi, dword [esp + 0x20]
jb 0x4f8f45
mov edi, dword [esp + 0x48]
mov ebp, 1
shl ebp, cl
add dword [esp + 0x28], ebp
cmp dword [esp + 0xa0], 1
mov dword [esp + 0x44], ebp
jne 0x4f8f8a
cmp dword [esp + 0x28], 0x5b0
jae 0x4f9041
mov esi, edi
mov edi, dword [esp + 0x3c]
mov edx, dword [edi]
mov byte [edx + esi*4], cl
mov ecx, dword [edi]
mov dl, byte [esp + 0x14]
mov byte [ecx + esi*4 + 1], dl
mov edi, dword [edi]
mov ecx, dword [esp + 0x1c]
sub ecx, edi
sar ecx, 2
mov dword [esp + 0x18], esi
mov word [edi + esi*4 + 2], cx
jmp 0x4f8e14
mov ebp, dword [esp + 0x3c]
mov dl, al
sub dl, bl
test esi, esi
mov byte [esp + 0x10], 0x40
mov byte [esp + 0x11], dl
mov word [esp + 0x12], 0
je 0x4f9025
mov edi, dword [esp + 0x1c]
test ebx, ebx
je 0x4f8ff5
mov ecx, dword [esp + 0x40]
and ecx, esi
cmp ecx, dword [esp + 0x18]
je 0x4f8ff5
mov eax, dword [esp + 0x14]
mov edi, dword [ebp]
xor ebx, ebx
mov byte [esp + 0x11], al
mov ecx, ebx
mov edx, esi
shr edx, cl
mov ecx, dword [esp + 0x10]
mov dword [edi + edx*4], ecx
lea ecx, [eax - 1]
mov edx, 1
shl edx, cl
test esi, edx
je 0x4f9016
shr edx, 1
test esi, edx
jne 0x4f9010
test edx, edx
je 0x4f9025
lea ecx, [edx - 1]
and ecx, esi
add ecx, edx
mov esi, ecx
jne 0x4f8fd8
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
lea eax, [edx*4]
add dword [ebp], eax
mov edx, dword [esp + 0x50]
mov dword [edx], ecx
xor eax, eax
jmp 0x4f9046
mov eax, 1
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005b0968
add esp, 0x8c
ret