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

Disassembly:
push 0xffffffffffffffff
push 0x53a846
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
mov ebp, ecx
push esi
push edi
xor edi, edi
mov eax, dword [ebp + 0x12c]
mov dword [esp + 0x68], ebp
cmp eax, edi
je 0x4f69c9
lea ecx, [eax + 0x44]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov edx, dword [ecx]
mov dword [esp + 0x3c], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x40], edx
mov ecx, dword [ecx + 8]
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x40]
shl edx, 4
lea ecx, [edx + eax - 0x10]
mov edx, dword [edx + eax - 0x10]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x4c]
mov eax, dword [ecx + 4]
push edx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
mov ecx, dword [ecx + 8]
push eax
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x44]
push ecx
call fcn.004e7090
lea edx, [esp + 0x2c]
lea eax, [esp + 0x48]
push edx
push eax
mov dword [esp + 0x24], 6
call fcn.004e6150
mov esi, dword [esp + 0x24]
mov ecx, eax
cdq
idiv esi
add esp, 0x14
cmp eax, 0x64
jge 0x4f676e
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov esi, edx
mov dword [esp + 0x10], esi
cmp esi, edi
mov ebx, 1
jne 0x4f677b
mov dword [esp + 0x10], ebx
lea edx, [esp + 0x10]
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x84]
push ecx
push edx
call fcn.004e7760
add esp, 0xc
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004e7800
mov ecx, dword [eax]
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x64]
mov edx, dword [eax + 4]
push ecx
mov dword [esp + 0x6c], edx
lea edx, [esp + 0x4c]
mov eax, dword [eax + 8]
push edx
mov dword [esp + 0x74], eax
lea eax, [esp + 0x84]
push eax
call fcn.004e7720
mov ecx, dword [eax]
add esp, 0x18
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], edi
mov edx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
cmp eax, edi
jle 0x4f69c9
or ebp, 0xffffffff
push 0xa
call fcn.004e5da0
add eax, 0xa
lea ecx, [esp + 0x50]
mov dword [esp + 0x4c], eax
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x78]
push edx
push eax
call fcn.004e77d0
mov ecx, dword [eax]
push 0xa
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x30], eax
call fcn.004e5da0
add eax, 0xa
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], eax
lea edx, [esp + 0x78]
push ecx
lea eax, [esp + 0xa0]
push edx
push eax
call fcn.004e77d0
mov ecx, dword [eax]
push 2
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x54], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x58], eax
call fcn.004e5da0
add esp, 0x24
test eax, eax
je 0x4f68b3
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
neg ecx
neg edx
neg eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
neg ecx
neg edx
neg eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
push 0x14
call fcn.004e5da0
mov ecx, dword [esp + 0x1c]
push 0x14
shl eax, 0xc
sub ecx, eax
mov dword [esp + 0x20], ecx
call fcn.004e5da0
mov ecx, dword [esp + 0x38]
push 0x98
shl eax, 0xc
sub ecx, eax
mov dword [esp + 0x3c], ecx
call fcn.004088a0
add esp, 0xc
mov dword [esp + 0x6c], eax
cmp eax, edi
mov dword [esp + 0x9c], edi
je 0x4f6912
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x28]
lea edx, [esp + 0x44]
push ecx
push edx
mov ecx, eax
call fcn.004f6290
mov al, byte [esp + 0x38]
mov dword [esp + 0x9c], ebp
test bl, al
je 0x4f6994
push 0x70
call fcn.004088a0
add esp, 4
mov dword [esp + 0x6c], eax
cmp eax, edi
mov dword [esp + 0x9c], ebx
je 0x4f697a
push ebx
push ebx
push 0x14
push 6
push 0x28
push 0xc
push ebx
push edi
push 9
push edi
push 0x80
push 0x80
push 0x80
push edi
push 0xff
push 0xff
push 0xff
lea ecx, [esp + 0x64]
push 5
push ecx
mov ecx, eax
call fcn.0043bee0
mov esi, eax
jmp 0x4f697c
xor esi, esi
push 0x1000
mov dword [esp + 0xa0], ebp
call fcn.004e5da0
add esp, 4
mov word [esi + 0x54], ax
lea edx, [esp + 0x58]
lea ecx, [esp + 0x3c]
push edx
call fcn.004e7590
lea eax, [esp + 0x58]
lea ecx, [esp + 0x20]
push eax
call fcn.004e7590
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x38], eax
jl 0x4f67fa
mov ebp, dword [esp + 0x68]
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 4]
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret