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

Disassembly:
sub esp, 0x7c
push ebx
mov ebx, dword [esp + 0x8c]
push esi
push edi
xor eax, eax
test ebx, ebx
mov ecx, 8
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x90]
jbe 0x4fc502
jmp 0x4fc4f0
movzx ecx, word [edi + eax*2]
inc word [esp + ecx*2 + 0x48]
lea ecx, [esp + ecx*2 + 0x48]
inc eax
cmp eax, ebx
jb 0x4fc4f0
mov esi, dword [esp + 0x9c]
mov eax, dword [esi]
mov edx, 0xf
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
cmp word [esp + edx*2 + 0x48], 0
jne 0x4fc526
dec edx
cmp edx, 1
jae 0x4fc518
cmp eax, edx
mov dword [esp + 0x18], edx
jbe 0x4fc534
mov dword [esp + 0x10], edx
mov eax, edx
test edx, edx
jne 0x4fc571
mov eax, dword [esp + 0x98]
mov word [esp + 0xe], dx
mov edx, dword [eax]
mov byte [esp + 0xc], 0x40
mov byte [esp + 0xd], 1
mov ecx, dword [esp + 0xc]
mov dword [edx], ecx
mov edx, dword [eax]
add edx, 4
mov dword [eax], edx
mov dword [edx], ecx
add dword [eax], 4
pop edi
mov dword [esi], 1
pop esi
xor eax, eax
pop ebx
add esp, 0x7c
ret
push ebp
mov ebp, 1
cmp word [esp + ebp*2 + 0x4c], 0
jne 0x4fc5b9
cmp word [esp + ebp*2 + 0x4e], 0
jne 0x4fc5a9
cmp word [esp + ebp*2 + 0x50], 0
jne 0x4fc5ac
cmp word [esp + ebp*2 + 0x52], 0
jne 0x4fc5b1
cmp word [esp + ebp*2 + 0x54], 0
jne 0x4fc5b6
add ebp, 5
cmp ebp, 0xf
jbe 0x4fc577
jmp 0x4fc5b9
inc ebp
jmp 0x4fc5b9
add ebp, 2
jmp 0x4fc5b9
add ebp, 3
jmp 0x4fc5b9
add ebp, 4
cmp eax, ebp
jae 0x4fc5c1
mov dword [esp + 0x14], ebp
mov ecx, 1
mov eax, ecx
jmp 0x4fc5d0
movzx esi, word [esp + eax*2 + 0x4c]
add ecx, ecx
sub ecx, esi
js 0x4fc6ce
inc eax
cmp eax, 0xf
jbe 0x4fc5d0
test ecx, ecx
mov esi, dword [esp + 0x90]
jle 0x4fc601
test esi, esi
je 0x4fc6ce
cmp edx, 1
jne 0x4fc6ce
mov word [esp + 0x6e], 0
mov eax, 2
lea ecx, [ecx]
mov cx, word [esp + eax + 0x6c]
add cx, word [esp + eax + 0x4c]
mov dx, word [esp + eax + 0x4e]
add dx, cx
mov word [esp + eax + 0x6e], cx
mov cx, word [esp + eax + 0x50]
add cx, dx
mov word [esp + eax + 0x70], dx
mov dx, word [esp + eax + 0x52]
add dx, cx
mov word [esp + eax + 0x72], cx
mov cx, word [esp + eax + 0x54]
add cx, dx
mov word [esp + eax + 0x74], dx
mov dx, word [esp + eax + 0x56]
add dx, cx
mov word [esp + eax + 0x76], cx
mov cx, word [esp + eax + 0x58]
add cx, dx
mov word [esp + eax + 0x78], dx
mov word [esp + eax + 0x7a], cx
add eax, 0xe
cmp eax, 0x1e
jb 0x4fc610
mov edx, dword [esp + 0xa4]
xor eax, eax
test ebx, ebx
jbe 0x4fc6a9
mov cx, word [edi + eax*2]
test cx, cx
je 0x4fc6a4
movzx ecx, cx
movzx ecx, word [esp + ecx*2 + 0x6c]
mov word [edx + ecx*2], ax
movzx ecx, word [edi + eax*2]
inc word [esp + ecx*2 + 0x6c]
lea ecx, [esp + ecx*2 + 0x6c]
inc eax
cmp eax, ebx
jb 0x4fc682
mov eax, esi
sub eax, 0
mov ecx, 0xffffffff
je 0x4fc6ff
dec eax
je 0x4fc6d9
mov dword [esp + 0x34], 0x509bb8
mov dword [esp + 0x30], 0x509bf8
mov dword [esp + 0x2c], ecx
jmp 0x4fc70f
pop ebp
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x7c
ret
mov eax, 0x509b38
sub eax, 0x202
mov dword [esp + 0x34], eax
mov eax, 0x509b78
sub eax, 0x202
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], 0x100
jmp 0x4fc70f
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], 0x13
mov eax, dword [esp + 0x9c]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x14]
mov eax, 1
shl eax, cl
mov dword [esp + 0x18], ebp
xor edi, edi
xor ebx, ebx
cmp esi, 1
mov ebp, eax
lea ecx, [eax - 1]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], ecx
jne 0x4fc75a
cmp eax, 0x5b0
jb 0x4fc75a
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x7c
ret
mov dword [esp + 0x24], edx
jmp 0x4fc764
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov cx, word [ecx]
mov esi, dword [esp + 0x2c]
mov al, dl
sub al, bl
mov byte [esp + 0x11], al
movzx eax, cx
cmp eax, esi
jge 0x4fc78e
mov byte [esp + 0x10], 0
mov word [esp + 0x12], cx
jmp 0x4fc7b6
jle 0x4fc7aa
mov ecx, dword [esp + 0x30]
mov cl, byte [ecx + eax*2]
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x34]
mov ax, word [ecx + eax*2]
mov word [esp + 0x12], ax
jmp 0x4fc7b6
mov byte [esp + 0x10], 0x60
mov word [esp + 0x12], 0
mov ecx, edx
sub ecx, ebx
mov eax, ebp
mov edx, 1
shl edx, cl
mov ecx, ebx
mov ebp, edi
shr ebp, cl
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x44], eax
lea esi, [edx*4]
add ebp, eax
lea ecx, [ecx + ebp*4]
mov ebp, dword [esp + 0x10]
sub eax, edx
sub ecx, esi
test eax, eax
mov dword [ecx], ebp
jne 0x4fc7e1
mov edx, dword [esp + 0x18]
lea ecx, [edx - 1]
mov eax, 1
shl eax, cl
test edi, eax
je 0x4fc806
lea ecx, [ecx]
shr eax, 1
test edi, eax
jne 0x4fc800
test eax, eax
je 0x4fc815
lea ecx, [eax - 1]
and ecx, edi
add ecx, eax
mov edi, ecx
jmp 0x4fc817
xor edi, edi
mov esi, dword [esp + 0x24]
add esi, 2
dec word [esp + edx*2 + 0x4c]
cmp word [esp + edx*2 + 0x4c], 0
mov dword [esp + 0x24], esi
jne 0x4fc84d
cmp edx, dword [esp + 0x1c]
je 0x4fc91b
mov ecx, dword [esp + 0x94]
mov edx, esi
movzx eax, word [edx]
movzx edx, word [ecx + eax*2]
mov dword [esp + 0x18], edx
cmp edx, dword [esp + 0x14]
jbe 0x4fc760
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
and esi, edi
cmp esi, eax
mov dword [esp + 0x48], esi
je 0x4fc760
test ebx, ebx
jne 0x4fc875
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x1c]
lea edx, [eax + ecx*4]
mov ecx, dword [esp + 0x18]
sub ecx, ebx
mov dword [esp + 0x20], edx
mov eax, 1
lea edx, [ebx + ecx]
shl eax, cl
cmp edx, ebp
jae 0x4fc8bc
lea esi, [esp + edx*2 + 0x4c]
movzx ebp, word [esi]
sub eax, ebp
test eax, eax
jle 0x4fc8b8
mov ebp, dword [esp + 0x1c]
inc ecx
inc edx
add esi, 2
shl eax, 1
cmp edx, ebp
jb 0x4fc8a0
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x28]
mov eax, 1
mov ebp, eax
shl ebp, cl
add edx, ebp
mov dword [esp + 0x28], edx
cmp dword [esp + 0x90], eax
mov dword [esp + 0x3c], ebp
jne 0x4fc8ea
cmp dword [esp + 0x28], 0x5b0
jae 0x4fc9b7
mov edx, esi
mov esi, dword [esp + 0x9c]
mov eax, dword [esi]
mov byte [eax + edx*4], cl
mov ecx, dword [esi]
mov al, byte [esp + 0x14]
mov byte [ecx + edx*4 + 1], al
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
sub ecx, eax
sar ecx, 2
mov dword [esp + 0x38], edx
mov word [eax + edx*4 + 2], cx
jmp 0x4fc764
mov ebp, dword [esp + 0x9c]
mov al, dl
sub al, bl
test edi, edi
mov byte [esp + 0x10], 0x40
mov byte [esp + 0x11], al
mov word [esp + 0x12], 0
je 0x4fc995
mov esi, dword [esp + 0x20]
mov edi, edi
test ebx, ebx
je 0x4fc965
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
and ecx, edi
cmp ecx, eax
je 0x4fc965
mov eax, dword [esp + 0x14]
mov esi, dword [ebp]
xor ebx, ebx
mov dword [esp + 0x18], eax
mov byte [esp + 0x11], al
mov edx, eax
mov ecx, ebx
mov eax, edi
shr eax, cl
mov ecx, dword [esp + 0x10]
mov dword [esi + eax*4], ecx
lea ecx, [edx - 1]
mov eax, 1
shl eax, cl
test edi, eax
je 0x4fc986
shr eax, 1
test edi, eax
jne 0x4fc980
test eax, eax
je 0x4fc995
lea ecx, [eax - 1]
and ecx, edi
add ecx, eax
mov edi, ecx
jne 0x4fc940
mov edx, dword [esp + 0x28]
mov ecx, dword [ebp]
lea eax, [edx*4]
mov edx, dword [esp + 0x14]
add ecx, eax
mov dword [ebp], ecx
mov ecx, dword [esp + 0xa0]
mov dword [ecx], edx
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x7c
ret