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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 4]
cmp dword [edi], 0xffffffff
jne 0x4ff1a9
mov eax, dword [edi + 4]
lea eax, [eax + eax*8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x34]
mov eax, dword [edx + eax*8]
mov dword [edi], eax
push esi
push edi
mov esi, edi
lea edi, [ebx + 0xac]
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [esi + 8]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
mov dword [ebx + 8], eax
mov byte [eax + 0x3931d], 0
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x20], eax
movzx eax, byte [esi + 0x2c]
mov byte [ebx + 0x24], al
movzx eax, byte [esi + 0x2d]
mov byte [ebx + 0x25], al
movzx eax, byte [esi + 0x2e]
mov byte [ebx + 0x26], al
movzx eax, byte [esi + 0x30]
mov byte [ebx + 0x27], al
movzx eax, byte [esi + 0x31]
mov byte [ebx + 0x28], al
movzx eax, byte [esi + 0x36]
mov byte [ebx + 0x29], al
movzx eax, byte [esi + 0x44]
mov byte [ebx + 0x2a], al
mov eax, dword [esi + 0x4c]
mov dword [ebx + 0x2c], eax
mov eax, dword [esi + 0x58]
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 0x5c]
mov dword [ebx + 0x34], eax
mov eax, dword [esi + 0x60]
mov dword [ebx + 0x38], eax
mov eax, dword [esi + 0x64]
mov dword [ebx + 0x3c], eax
lea eax, [ebx + 0x11c]
xor ecx, ecx
mov edx, 0x10
call fcn.004032f4
mov byte [ebx + 0xa9], 0
cmp dword [ebp + 8], 0
je 0x4ff272
lea edx, [ebx + 0xac]
mov eax, dword [ebp + 8]
call fcn.004ff0e4
test al, al
je 0x4ff272
mov byte [ebx + 0xa9], 1
lea eax, [ebx + 0xac]
mov edx, dword [ebp + 8]
call fcn.004fee8c
mov eax, dword [ebx + 0xcc]
mov dword [edi + 0x20], eax
mov eax, dword [ebx + 0xd8]
mov dword [edi + 0x2c], eax
mov eax, dword [ebx + 0xd4]
mov dword [edi + 0x28], eax
mov ecx, dword [ebx + 0xc4]
add ecx, 7
shr ecx, 3
mov eax, ecx
cdq
push edx
push eax
mov eax, dword [esi + 0xb0]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4ff2c3
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4ff2ed
jmp 0x4ff2c7
pop edx
pop eax
jge 0x4ff2ed
mov eax, ecx
mov dword [esi + 0xb0], eax
mov edx, eax
lea eax, [esi + 0x90]
call fcn.0040d7f8
mov edx, dword [esi + 0xb0]
lea eax, [esi + 0xa0]
call fcn.0040d7f8
mov ecx, dword [ebx + 0xcc]
add ecx, 7
shr ecx, 3
mov eax, ecx
cdq
push edx
push eax
mov eax, dword [esi + 0xb4]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4ff315
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4ff33f
jmp 0x4ff319
pop edx
pop eax
jge 0x4ff33f
mov eax, ecx
mov dword [esi + 0xb4], eax
mov edx, eax
lea eax, [esi + 0x98]
call fcn.0040d7f8
mov edx, dword [esi + 0xb4]
lea eax, [esi + 0xa8]
call fcn.0040d7f8
push esi
add esi, 0x90
lea edi, [ebx + 0xfc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
push esi
add esi, 0xa0
lea edi, [ebx + 0x10c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
push ebp
mov eax, dword [ebx + 0xcc]
add eax, dword [ebx + 0xc4]
call fcn.004ff130
pop ecx
mov dword [ebx + 0xb4], eax
mov eax, dword [ebx + 0xcc]
add eax, dword [ebx + 0xc4]
imul dword [esi + 0x40]
test eax, eax
jns 0x4ff394
add eax, 0xff
sar eax, 8
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0xd8]
add eax, dword [ebx + 0xd4]
imul dword [esi + 0x40]
test eax, eax
jns 0x4ff3b2
add eax, 0xff
sar eax, 8
mov dword [ebx + 0x44], eax
cmp byte [ebx + 0x27], 0
je 0x4ff3cc
mov dword [ebx + 0x40], 2
xor eax, eax
mov dword [ebx + 0x44], eax
jmp 0x4ff419
cmp byte [ebx + 0x25], 0
je 0x4ff3f0
mov ecx, 0x10
mov eax, dword [ebx + 0x40]
cdq
idiv ecx
mov dword [ebx + 0x40], eax
mov ecx, 0x10
mov eax, dword [ebx + 0x44]
cdq
idiv ecx
mov dword [ebx + 0x44], eax
jmp 0x4ff40c
mov ecx, 8
mov eax, dword [ebx + 0x40]
cdq
idiv ecx
mov dword [ebx + 0x40], eax
mov ecx, 8
mov eax, dword [ebx + 0x44]
cdq
idiv ecx
mov dword [ebx + 0x44], eax
cmp dword [ebx + 0x40], 2
jge 0x4ff419
mov dword [ebx + 0x40], 2
cmp byte [ebx + 0x25], 0
jne 0x4ff425
cmp byte [ebx + 0x27], 0
je 0x4ff431
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x4c], eax
jmp 0x4ff455
cmp byte [ebx + 0x24], 0
je 0x4ff447
mov dword [ebx + 0x48], 4
mov dword [ebx + 0x4c], 2
jmp 0x4ff455
mov dword [ebx + 0x48], 0x400
mov dword [ebx + 0x4c], 0x40
lea eax, [ebx + 0x11c]
xor ecx, ecx
mov edx, 0x10
call fcn.004032f4
xor eax, eax
mov dword [ebx + 0x50], eax
mov eax, dword [ebx + 0xcc]
add eax, dword [ebx + 0xc4]
test eax, eax
jns 0x4ff481
add eax, 0x3ff
sar eax, 0xa
inc eax
mov dword [ebx + 0x54], eax
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x7c]
mov dword [ebx + 0x58], eax
mov eax, dword [esi + 0x80]
mov dword [ebx + 0x5c], eax
mov eax, dword [esi + 0x84]
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x64], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x7c], eax
mov eax, dword [esi + 0x68]
mov dword [ebx + 0x80], eax
movzx eax, byte [esi + 0x8c]
mov byte [ebx + 0x84], al
xor eax, eax
mov dword [ebx + 0x88], eax
xor eax, eax
mov dword [ebx + 0x8c], eax
xor eax, eax
mov dword [ebx + 0x90], eax
xor eax, eax
mov dword [ebx + 0x94], eax
xor eax, eax
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x9c], eax
push 0
push 0
mov eax, dword [ebx + 0x34]
push eax
mov eax, dword [ebx + 0x88]
push eax
mov eax, dword [ebx + 0x8c]
push eax
lea eax, [ebx + 0xa0]
push eax
lea eax, [ebx + 0xa4]
push eax
lea eax, [ebx + 0xa8]
push eax
lea edx, [ebx + 0xac]
movzx eax, byte [ebx + 0x25]
xor ecx, ecx
call fcn.004fcbf4
xor eax, eax
mov dword [ebx + 0x68], eax
mov byte [ebx + 0x6c], 0
xor eax, eax
mov dword [ebx + 0x70], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x78], eax
cmp byte [ebx + 0x27], 0
jne 0x4ff563
cmp byte [ebx + 0x26], 0
jne 0x4ff57b
cmp byte [ebx + 0x28], 0
jne 0x4ff57b
cmp dword [ebp + 8], 0
je 0x4ff57b
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [esi + 0x28]
push dword [esi + 0x24]
mov eax, ebx
mov edx, dword [ebp + 8]
call fcn.004fedd0
jmp 0x4ff58e
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [esi + 0x28]
push dword [esi + 0x24]
mov eax, ebx
call fcn.004feb5c
mov eax, ebx
call fcn.004fe0ac
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8