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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x78], 0xfffffffe
jne 0x4fa57e
mov al, byte [esi + 0x84]
test al, al
jne 0x4fa521
mov ecx, dword [esi + 0x80]
mov eax, 1
shl eax, cl
lea ecx, [esi + 0x10]
push eax
call fcn.0048c5cb
test al, al
jne 0x4fa51a
pop edi
pop esi
pop ebp
mov eax, 0x8007000e
pop ebx
add esp, 0xc
ret 4
mov ecx, esi
call fcn.004fa364
push 0x100000
lea ecx, [esi + 0x50]
call fcn.0048aae2
test al, al
jne 0x4fa541
pop edi
pop esi
pop ebp
mov eax, 0x8007000e
pop ebx
add esp, 0xc
ret 4
lea edi, [esi + 0x48]
lea ecx, [edi + 8]
call fcn.0048ab40
xor ebx, ebx
mov dword [edi], 0x10000
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], 0x10000
mov ebp, 0x10
mov ecx, edi
call fcn.004fa944
lea ecx, [ebx + ebx]
or eax, ecx
dec ebp
mov ebx, eax
jne 0x4fa563
mov dword [esi + 0x40], ebx
mov dword [esi + 0x78], 0
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x4fa592
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4
mov eax, dword [esi + 0x78]
test eax, eax
jle 0x4fa5e8
test edi, edi
jbe 0x4fa921
mov edx, dword [esi + 0x7c]
dec eax
lea ecx, [esi + 0x10]
mov dword [esi + 0x78], eax
mov eax, dword [ecx + 4]
sub eax, edx
mov edx, dword [ecx + 0x10]
dec eax
cmp eax, edx
jb 0x4fa5ba
add eax, edx
mov edx, dword [ecx]
mov ebx, dword [ecx + 4]
mov ebp, edx
mov al, byte [edx + eax]
mov byte [ebx + ebp], al
mov ebx, dword [ecx + 4]
mov edx, dword [ecx + 8]
inc ebx
mov eax, ebx
mov dword [ecx + 4], ebx
cmp eax, edx
jne 0x4fa5dc
call fcn.0048c713
mov eax, dword [esi + 0x78]
dec edi
test eax, eax
jg 0x4fa599
mov dword [esp + 0x20], edi
test edi, edi
jbe 0x4fa925
mov al, byte [esi + 0x6c]
test al, al
jne 0x4fa8f8
mov eax, dword [esi + 0x40]
lea ebp, [esi + 0x90]
xor ecx, ecx
inc eax
mov cx, word [ebp]
xor edx, edx
imul eax, ecx
dec eax
xor ebx, ebx
div dword [esi + 0x3c]
mov bx, word [esi + 0x92]
lea edx, [esi + 0x92]
mov edi, 1
cmp ebx, eax
jbe 0x4fa639
add edx, 2
xor ebx, ebx
inc edi
mov bx, word [edx]
cmp ebx, eax
ja 0x4fa62c
push ecx
xor ecx, ecx
mov cx, word [esi + edi*2 + 0x8e]
xor edx, edx
mov dx, word [esi + edi*2 + 0x90]
push ecx
push edx
lea ecx, [esi + 0x38]
call fcn.004fa994
dec edi
xor ebx, ebx
mov bl, byte [edi + esi + 0x112]
lea eax, [esi + edi*2 + 0x90]
mov dword [esp + 0x10], ebx
add word [eax], 8
mov ecx, edi
dec edi
sub eax, 2
test ecx, ecx
jne 0x4fa66d
cmp word [ebp], 0xed8
jbe 0x4fa794
mov eax, dword [esi + 0x8c]
dec eax
mov dword [esi + 0x8c], eax
jne 0x4fa769
mov eax, dword [esi + 0x88]
mov dword [esi + 0x8c], 0x32
test eax, eax
jbe 0x4fa6d2
mov eax, ebp
xor edx, edx
xor edi, edi
mov dx, word [eax + 2]
mov di, word [eax]
sub edi, edx
add eax, 2
inc edi
sar edi, 1
mov word [eax - 2], di
mov edx, dword [esi + 0x88]
inc ecx
cmp ecx, edx
jb 0x4fa6b0
mov edx, dword [esi + 0x88]
xor eax, eax
lea ecx, [edx - 1]
test ecx, ecx
jbe 0x4fa74f
lea ecx, [eax + 1]
cmp ecx, edx
mov dword [esp + 0x18], ecx
jae 0x4fa73d
lea edi, [ebp + 2]
mov dx, word [ebp]
mov bx, word [edi]
cmp dx, bx
mov dword [esp + 0x14], edx
jae 0x4fa727
mov dl, byte [esi + eax + 0x112]
mov word [ebp], bx
mov bl, byte [esi + ecx + 0x112]
mov byte [esi + eax + 0x112], bl
mov bx, word [esp + 0x14]
mov word [edi], bx
mov byte [esi + ecx + 0x112], dl
mov edx, dword [esi + 0x88]
inc ecx
add edi, 2
cmp ecx, edx
jb 0x4fa6ef
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x88]
mov eax, ecx
add ebp, 2
lea ecx, [edx - 1]
cmp eax, ecx
jb 0x4fa6e1
lea ecx, [esi + eax*2 + 0x90]
mov dx, word [ecx + 2]
add word [ecx], dx
mov edx, eax
dec eax
sub ecx, 2
test edx, edx
jne 0x4fa756
jmp 0x4fa794
mov ecx, dword [esi + 0x88]
dec ecx
lea eax, [esi + ecx*2 + 0x90]
shr word [eax], 1
mov di, word [eax]
mov dx, word [eax + 2]
cmp di, dx
ja 0x4fa78a
inc edx
mov word [eax], dx
mov edx, ecx
dec ecx
sub eax, 2
test edx, edx
jne 0x4fa777
cmp ebx, 4
jae 0x4fa7e2
lea eax, [esi + 0x38]
push eax
mov eax, ebx
shl eax, 4
add eax, ebx
lea eax, [eax + eax*2]
lea ecx, [esi + eax*4 + 0x154]
call fcn.004faa74
mov edx, dword [esi + 0x14]
mov edi, dword [esi + 0x10]
lea ecx, [esi + 0x10]
shl bl, 6
add al, bl
mov byte [edx + edi], al
mov edi, dword [ecx + 4]
mov edx, dword [ecx + 8]
inc edi
mov eax, edi
mov dword [ecx + 4], edi
cmp eax, edx
jne 0x4fa7d9
call fcn.0048c713
dec dword [esp + 0x20]
jmp 0x4fa8d8
add ebx, 0xfffffffc
cmp ebx, 2
mov dword [esp + 0x18], ebx
lea edi, [ebx + 3]
mov dword [esp + 0x10], edi
jne 0x4fa85a
lea eax, [esi + 0x38]
lea ecx, [esi + 0x6e8]
push eax
call fcn.004faa74
cmp eax, 6
jb 0x4fa84e
sub eax, ebx
mov ecx, eax
and eax, 3
shr ecx, 2
or al, 4
shl eax, cl
cmp ecx, 6
lea eax, [edi + eax - 2]
mov dword [esp + 0x10], eax
jge 0x4fa856
mov ebp, ecx
xor edi, edi
lea ebx, [esi + 0x48]
mov ecx, ebx
call fcn.004fa944
lea ecx, [edi + edi]
or eax, ecx
dec ebp
mov edi, eax
jne 0x4fa82b
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
add eax, edi
mov dword [esp + 0x10], eax
mov edi, eax
jmp 0x4fa85a
add edi, eax
mov dword [esp + 0x10], edi
jmp 0x4fa85a
mov edi, dword [esp + 0x10]
lea eax, [esi + 0x38]
push eax
mov eax, ebx
shl eax, 4
add eax, ebx
lea edx, [eax + eax*2]
lea ecx, [esi + edx*4 + 0x484]
call fcn.004faa74
mov ebp, eax
cmp ebp, 4
jb 0x4fa8b0
mov edi, ebp
shr edi, 1
dec edi
xor ebx, ebx
mov dword [esp + 0x14], edi
lea ecx, [esi + 0x48]
call fcn.004fa944
lea ecx, [ebx + ebx]
or eax, ecx
mov ebx, eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x4fa886
and ebp, 1
mov ecx, edi
mov edi, dword [esp + 0x10]
or ebp, 2
shl ebp, cl
add ebp, ebx
mov eax, dword [esp + 0x20]
mov ebx, edi
cmp edi, eax
jbe 0x4fa8bc
mov ebx, eax
push ebx
push ebp
lea ecx, [esi + 0x10]
call fcn.004944cc
test al, al
je 0x4fa8f8
mov ecx, dword [esp + 0x20]
sub ecx, ebx
sub edi, ebx
mov dword [esp + 0x20], ecx
jne 0x4fa907
mov eax, dword [esp + 0x20]
test eax, eax
ja 0x4fa5f0
mov cl, byte [esi + 0x6c]
xor eax, eax
pop edi
pop esi
test cl, cl
pop ebp
pop ebx
setne al
add esp, 0xc
ret 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 4
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], ebp
mov cl, byte [esi + 0x6c]
xor eax, eax
pop edi
pop esi
test cl, cl
pop ebp
pop ebx
setne al
add esp, 0xc
ret 4
mov dword [esp + 0x20], edi
mov cl, byte [esi + 0x6c]
xor eax, eax
pop edi
pop esi
test cl, cl
pop ebp
pop ebx
setne al
add esp, 0xc
ret 4