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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x61e908
push eax
mov dword fs:[0], esp
sub esp, 0x64
cmp dword [esp + 0x74], 0
push ebx
push ebp
push esi
push edi
mov ebx, ecx
jne 0x4f9b10
mov dword [esp + 0x84], 8
mov eax, dword [ebx + 0x60]
mov edx, dword [eax + 0xc]
lea ecx, [ebx + 0x60]
mov dword [esp + 0x14], ecx
call edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x10], eax
mov eax, dword [eax + 8]
cdq
mov ebp, eax
mov eax, dword [esp + 0x88]
push 0
xor ebp, edx
push eax
sub ebp, edx
mov edx, dword [esp + 0x8c]
push edx
push ebp
push ecx
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x30], ecx
call fcn.005d9840
mov eax, dword [ebx + 0x64]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x54]
add ecx, eax
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x5c]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x74], eax
mov eax, dword [ebx]
mov dword [esp + 0x88], edx
mov edx, dword [eax + 0x24]
lea edi, [ebx + 0x74]
mov ecx, 0xa
lea esi, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0xa0]
add esp, 0x18
mov ecx, ebx
mov dword [ebx + 0x9c], edi
call edx
cmp dword [esp + 0x84], 4
jne 0x4f9d02
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 0x20]
test esi, esi
mov dword [esp + 0x88], eax
jne 0x4f9c1d
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x4f9c0c
cmp eax, 2
je 0x4f9c0c
cmp eax, 1
jne 0x4f9c2a
movzx ecx, word [ecx + 0xe]
cmp cx, 8
ja 0x4f9c2a
mov esi, 1
shl esi, cl
cmp esi, 0x100
jle 0x4f9c2a
mov esi, 0x100
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
lea edi, [esi*4 + 0x28]
call edx
cmp dword [ebx + 0x6c], edi
mov dword [esp + 0x84], eax
je 0x4f9c5b
mov eax, dword [ebx + 0x70]
push edi
push eax
mov dword [ebx + 0x6c], edi
call fcn.005f9b9c
add esp, 8
mov dword [ebx + 0x70], eax
mov ecx, dword [esp + 0x84]
mov edx, dword [ebx + 0x70]
push edi
push ecx
push edx
call fcn.005f7b00
mov eax, dword [ebx + 0x70]
mov dword [eax], 0x28
mov ecx, dword [ebx + 0x70]
mov word [ecx + 0xc], 1
mov ecx, dword [esp + 0x24]
mov edx, dword [ebx + 0x70]
add ecx, 3
and ecx, 0xfffffffc
imul ecx, ebp
mov word [edx + 0xe], 8
mov eax, dword [ebx + 0x70]
mov dword [eax + 0x10], 0
mov edx, dword [ebx + 0x70]
mov dword [edx + 0x14], ecx
mov ebp, dword [ebx + 0x70]
add esp, 0xc
add ebp, 0x28
test esi, esi
jle 0x4f9cf7
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x88]
sub eax, dword [ecx]
lea edx, [esi*4]
push edx
shr eax, 2
push 0
push ebp
mov edi, eax
call fcn.005f7e70
add esp, 0xc
cmp esi, edi
jle 0x4f9cdd
mov esi, edi
lea eax, [esi*4]
push eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
add ecx, eax
push ecx
push ebp
call fcn.005f7b00
add esp, 0xc
lea edx, [ebx + 0xb4]
mov dword [ebx + 0x78], edx
jmp 0x4f9d6e
mov esi, eax
push esi
mov dword [esp + 0x20], esi
call fcn.005f79ac
mov ecx, dword [esp + 0x14]
push esi
push ecx
push eax
mov dword [esp + 0x30], eax
call fcn.005f7b00
mov edx, dword [esp + 0x94]
push edi
push edx
lea eax, [esp + 0x34]
push eax
add ebx, 0x6c
xor esi, esi
push ebx
mov dword [esp + 0x9c], esi
call fcn.005d9ad0
add esp, 0x20
test al, al
jne 0x4f9d56
mov ecx, dword [ebx + 4]
push ecx
call fcn.005f7a6f
add esp, 4
mov dword [ebx + 4], esi
mov dword [ebx], esi
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0x80], 0xffffffff
call fcn.005f7a6f
add esp, 4
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0x58]
call edx
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret 8