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

Disassembly:
sub esp, 0xf4
mov ecx, dword [esp + 0x100]
mov edx, dword [esp + 0x108]
push ebx
push ebp
or eax, 0xffffffff
lea ebx, [ecx + edx]
push esi
mov esi, dword [esp + 0x118]
push edi
mov edi, dword [esp + 0x108]
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
xor eax, eax
lea edx, [ebx - 1]
mov dword [esp + 0x28], eax
test esi, 0xffff5a6f
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], edx
mov ebp, edi
je 0x4f739b
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0xf4
ret
cmp edi, eax
je 0x4f79bb
cmp ecx, eax
je 0x4f79bb
mov ecx, dword [esp + 0x120]
cmp ecx, eax
mov ecx, dword [esp + 0x124]
jne 0x4f73c5
cmp ecx, eax
jg 0x4f79bb
cmp ecx, eax
jge 0x4f73d9
pop edi
pop esi
pop ebp
mov eax, 0xfffffff1
pop ebx
add esp, 0xf4
ret
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10c]
cmp ecx, eax
mov dword [esp + 0x50], 0x989680
mov dword [esp + 0xac], eax
je 0x4f7443
mov edx, dword [ecx]
test dl, 1
mov dword [esp + 0x10], edx
je 0x4f7414
mov edx, dword [ecx + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x10]
test dl, 2
je 0x4f7424
mov edx, dword [ecx + 8]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x10]
test dl, 4
je 0x4f7437
mov edx, dword [ecx + 0xc]
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0x10]
test dl, 8
je 0x4f7443
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x18], eax
jne 0x4f7451
mov dword [esp + 0x18], 0x50d324
cmp dword [edi], 0x50435245
je 0x4f74a0
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0xb4]
push edx
lea ecx, [esp + 0xe0]
push eax
push ecx
push edi
call fcn.004f3150
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x4f748d
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0xf4
ret
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4f74a0
lea edx, [esp + 0xb4]
mov dword [esp + 0x1c], edx
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, eax
mov dx, word [ebp + 0x1a]
shr eax, 0x1c
or ecx, esi
and eax, 1
shr ecx, 4
mov dword [esp + 0x2c], eax
xor eax, eax
mov ax, word [ebp + 0x1c]
and ecx, 1
mov dword [esp + 0x34], ecx
mov ecx, eax
imul ecx, edx
xor eax, eax
mov edx, dword [esp + 0x114]
mov ax, word [ebp + 0x18]
add edi, ecx
mov ecx, dword [esp + 0x118]
add eax, edi
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x110]
mov dword [esp + 0x8c], eax
add eax, edx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x90], eax
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
shr eax, 5
and eax, 1
mov edx, esi
mov dword [esp + 0x78], eax
mov ecx, dword [ebp + 8]
mov eax, esi
shr eax, 8
shr ecx, 0xb
and eax, 1
and ecx, 1
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov eax, 0
mov ecx, esi
mov dword [esp + 0x84], eax
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x18]
shr edx, 7
shr ecx, 0xa
shr esi, 0xf
and edx, 1
and ecx, 1
mov dword [esp + 0x60], eax
and esi, 1
lea eax, [eax + 0x340]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], esi
mov dword [esp + 0x64], eax
je 0x4f7598
test dword [ebp + 8], 0x4000000
je 0x4f7598
pop edi
pop esi
pop ebp
mov eax, 0xfffffff3
pop ebx
add esp, 0xf4
ret
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x124]
and eax, 7
mov ecx, 3
mov dword [esp + 0x48], eax
mov eax, edi
cdq
idiv ecx
mov cx, word [ebp + 0x12]
sub edi, edx
test cx, cx
jbe 0x4f760f
mov eax, 0x55555556
and ecx, 0xffff
imul edi
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ecx, edx
jl 0x4f760f
lea edi, [ecx + ecx*2 + 3]
lea ecx, [edi*4]
push ecx
call dword [0x50d314]
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x54], esi
jne 0x4f7605
pop edi
pop esi
pop ebp
mov eax, 0xfffffffa
pop ebx
add esp, 0xf4
ret
mov dword [esp + 0x28], 1
jmp 0x4f761a
mov esi, dword [esp + 0x120]
mov dword [esp + 0x54], esi
lea ecx, [edi + edi]
mov eax, 0x55555556
imul ecx
mov eax, edx
xor ecx, ecx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x68], 0
mov dword [esp + 0xa0], 0xffffffff
mov cx, word [ebp + 0x10]
lea eax, [ecx + ecx + 2]
mov ecx, dword [esp + 0x124]
cmp eax, ecx
mov dword [esp + 0x10], eax
jle 0x4f7663
mov dword [esp + 0x10], edi
test esi, esi
je 0x4f7695
mov eax, dword [esp + 0x10]
lea ecx, [esi + edi*4]
cdq
sub eax, edx
mov edx, 1
sar eax, 1
sub edx, eax
lea eax, [ecx + edx*4]
sub ecx, 4
cmp ecx, eax
jb 0x4f7695
mov dword [ecx], 0xffffffff
sub ecx, 4
cmp ecx, eax
jae 0x4f7684
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4f76f3
test dword [ebp + 8], 0x40000000
je 0x4f76d6
xor eax, eax
mov ax, word [ebp + 0x14]
mov ecx, eax
shr eax, 8
and eax, 1
and ecx, 0xff
cmp eax, 1
mov dword [esp + 0x14], ecx
mov dword [esp + 0x3c], eax
jne 0x4f76f3
mov edx, dword [esp + 0x60]
xor eax, eax
mov al, byte [edx + ecx]
mov dword [esp + 0x14], eax
jmp 0x4f76f3
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4f76f3
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4f76f3
test byte [eax + 4], 1
je 0x4f76f3
add eax, 8
mov dword [esp + 0x20], eax
test dword [ebp + 8], 0x20000000
je 0x4f7729
xor eax, eax
mov edx, dword [esp + 0x18]
mov ax, word [ebp + 0x16]
mov ecx, eax
shr eax, 8
and eax, 1
and ecx, 0xff
mov dword [esp + 0x44], eax
xor eax, eax
mov al, byte [edx + ecx + 0x100]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], eax
mov ebp, dword [esp + 0x24]
jmp 0x4f7733
mov esi, dword [esp + 0x54]
test esi, esi
je 0x4f7755
mov eax, dword [esp + 0x10]
lea ecx, [esi + eax*4]
cmp esi, ecx
jae 0x4f7755
sub ecx, esi
mov edi, esi
add ecx, 3
shr ecx, 2
or eax, 0xffffffff
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x4f77a4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4f778d
cmp ebx, ebp
jae 0x4f780a
mov eax, dword [esp + 0x60]
xor ecx, ecx
mov cl, byte [ebx]
xor edx, edx
mov dl, byte [ecx + eax]
mov eax, dword [esp + 0x14]
cmp edx, eax
je 0x4f780a
inc ebx
cmp ebx, ebp
jb 0x4f776d
jmp 0x4f780a
cmp ebx, ebp
jae 0x4f780a
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov cl, byte [ebx]
cmp ecx, eax
je 0x4f780a
inc ebx
cmp ebx, ebp
jb 0x4f7791
jmp 0x4f780a
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4f77d1
mov edx, dword [esp + 0x118]
mov eax, dword [esp + 0x8c]
add eax, edx
cmp ebx, eax
jbe 0x4f780a
cmp ebx, ebp
jae 0x4f780a
cmp byte [ebx - 1], 0xa
je 0x4f780a
inc ebx
cmp ebx, ebp
jb 0x4f77c4
jmp 0x4f780a
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4f780a
cmp ebx, ebp
jae 0x4f780a
xor eax, eax
mov edx, 1
mov al, byte [ebx]
mov ecx, eax
and ecx, 7
shl edx, cl
mov ecx, dword [esp + 0x20]
shr eax, 3
mov al, byte [eax + ecx]
test al, dl
jne 0x4f7806
mov ebp, dword [esp + 0x24]
inc ebx
cmp ebx, ebp
jb 0x4f77dd
jmp 0x4f780a
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x38]
test edi, edi
jl 0x4f787b
mov ecx, ebp
sub ecx, ebx
cmp ecx, 0x3e8
jge 0x4f787b
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x4f787b
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x30]
setge al
add eax, ebx
cmp eax, ecx
jbe 0x4f787b
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x4f785f
cmp eax, ebp
jae 0x4f78c4
xor ecx, ecx
mov cl, byte [eax]
inc eax
cmp ecx, edi
je 0x4f7872
cmp ecx, dword [esp + 0x40]
je 0x4f7872
cmp eax, ebp
jae 0x4f78c4
jmp 0x4f784a
cmp eax, ebp
jae 0x4f78c4
xor edx, edx
mov dl, byte [eax]
inc eax
cmp edx, edi
je 0x4f7872
cmp eax, ebp
jae 0x4f78c4
jmp 0x4f7863
dec eax
cmp eax, ebp
jae 0x4f78c4
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x88]
push 2
push 0
lea ecx, [esp + 0x54]
push eax
push ecx
push 2
push edx
push ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x68], 0
call fcn.004f79d0
add esp, 0x1c
test eax, eax
jne 0x4f790a
mov eax, dword [esp + 0x34]
inc ebx
test eax, eax
jne 0x4f78c0
cmp ebx, ebp
jbe 0x4f772f
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4f78d6
push esi
call dword [0x50d318]
add esp, 4
mov eax, dword [esp + 0x80]
test eax, eax
je 0x4f78fc
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4f78fc
pop edi
pop esi
pop ebp
mov eax, 0xfffffff4
pop ebx
add esp, 0xf4
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xf4
ret
cmp eax, 1
jne 0x4f79c0
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x124]
test eax, eax
je 0x4f7968
mov eax, dword [esp + 0x54]
cmp ebp, 4
jl 0x4f794d
mov edx, dword [esp + 0x120]
lea ecx, [ebp*4 - 8]
lea esi, [eax + 8]
lea edi, [edx + 8]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x9c], ebp
jle 0x4f795e
mov dword [esp + 0x68], 1
push eax
call dword [0x50d318]
add esp, 4
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4f7974
xor eax, eax
jmp 0x4f7980
mov eax, dword [esp + 0x9c]
cdq
sub eax, edx
sar eax, 1
cmp ebp, 2
jge 0x4f7992
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xf4
ret
mov ecx, dword [esp + 0x8c]
mov esi, dword [esp + 0x98]
mov edx, dword [esp + 0x120]
sub ebx, ecx
sub esi, ecx
pop edi
mov dword [edx + 4], esi
pop esi
mov dword [edx], ebx
pop ebp
pop ebx
add esp, 0xf4
ret
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret