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

Disassembly:
sub esp, 0x184
mov eax, dword [0x5d3070]
xor eax, esp
mov dword [esp + 0x17c], eax
push ebx
mov ebx, dword [esp + 0x190]
push ebp
push esi
mov esi, dword [esp + 0x194]
mov ebp, ecx
push edi
cmp esi, 0xffffffff
jl 0x50032e
mov ecx, dword [ebp]
cmp esi, dword [ecx + 4]
jge 0x50032e
cmp dword [ebp + 4], 0xffffffff
je 0x4fff88
call fcn.004ffd90
mov dword [ebp + 4], 0xffffffff
cmp esi, dword [ebp + 0x134]
jne 0x4fffaf
cmp esi, 0xffffffff
je 0x4fffb4
lea esi, [ebp + 8]
mov ecx, 0x4b
mov edi, ebx
xor eax, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x500333
cmp esi, 0xffffffff
jne 0x500021
mov eax, dword [ebp]
mov eax, dword [eax + 4]
mov dword [ebx], eax
xor eax, eax
mov byte [ebx + 4], 0
mov dword [ebx + 0x108], 0
mov dword [ebx + 0x10c], 0
mov dword [ebx + 0x110], 0
mov dword [ebx + 0x114], 0
mov dword [ebx + 0x118], 0
mov dword [ebx + 0x11c], 0
mov dword [ebx + 0x120], 0
mov dword [ebx + 0x124], 0
mov dword [ebx + 0x128], 0
jmp 0x500333
mov ecx, dword [ebp]
cmp esi, dword [ecx + 0x10]
jge 0x50002e
call fcn.004ff7a0
mov eax, dword [ebp]
cmp dword [eax + 0x10], esi
jge 0x500046
mov ecx, dword [ebp]
call fcn.004ff7e0
mov eax, dword [ebp]
cmp dword [eax + 0x10], esi
jl 0x500036
mov ecx, dword [ebp]
lea eax, [esp + 0x80]
sub esp, 0x10
lea edx, [esp + 0x30]
push 0x104
push eax
push 0
call fcn.004ff340
mov ecx, dword [ebp]
lea eax, [esp + 0x34]
add esp, 0x1c
lea edx, [esp + 0x14]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004ff840
add esp, 8
test eax, eax
je 0x50008e
mov eax, 0x700
jmp 0x500333
mov eax, dword [ebp]
mov ecx, dword [eax]
cmp byte [ecx], 0
je 0x5000b5
cmp byte [ecx + 1], 0
je 0x5000ed
mov eax, dword [ecx + 0xc]
add eax, dword [esp + 0x74]
push 0
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x5000bc
mov eax, dword [esp + 0x74]
mov dword [ecx + 0x18], eax
mov esi, dword [esp + 0x18]
push esi
call fcn.0053f7f7
mov ecx, dword [ebp]
add esp, 4
mov edi, eax
mov edx, 1
push dword [ecx]
mov ecx, edi
push esi
call fcn.004fed70
add esp, 8
cmp eax, esi
je 0x5000f7
push edi
call fcn.0053f7f2
add esp, 4
mov eax, 0x800
jmp 0x500333
mov eax, dword [ebp]
lea ecx, [esp + 0x80]
mov edx, ecx
mov eax, dword [eax + 0x10]
mov dword [ebx], eax
mov eax, ebx
sub eax, edx
lea edx, [eax + 4]
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x500110
mov edx, dword [esp + 0x54]
mov eax, edx
shr eax, 0x17
mov ecx, edx
and eax, 0xffffff01
shr ecx, 5
mov dword [esp + 0x1c], eax
mov al, dl
and al, 1
mov byte [esp + 0x13], al
mov eax, edx
shr eax, 1
and eax, 0xffffff01
mov dword [esp + 0x74], eax
mov eax, edx
shr eax, 2
and eax, 0xffffff01
test edx, 0x40000010
mov dword [esp + 0x14], eax
mov edx, 0x90
mov eax, 0x80
cmovne eax, edx
mov dword [ebx + 0x108], eax
and cl, 1
je 0x50017c
or dword [ebx + 0x108], 0x20
cmp byte [esp + 0x74], 0
je 0x50018a
or dword [ebx + 0x108], 2
cmp byte [esp + 0x1c], 0
je 0x500198
cmp byte [esp + 0x13], 0
je 0x50019f
or dword [ebx + 0x108], 1
cmp byte [esp + 0x14], 0
je 0x5001ad
or dword [ebx + 0x108], 4
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x124], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x128], eax
lea eax, [esp + 0x78]
push eax
mov eax, dword [esp + 0x34]
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov ecx, dword [esp + 0x78]
xor esi, esi
cmp dword [esp + 0x18], 4
mov eax, dword [esp + 0x7c]
mov dword [ebx + 0x10c], ecx
mov dword [ebx + 0x110], eax
mov dword [ebx + 0x114], ecx
mov dword [ebx + 0x118], eax
mov dword [ebx + 0x11c], ecx
mov dword [ebx + 0x120], eax
jbe 0x500304
mov byte [esp + 0x76], 0
movzx eax, byte [esi + edi]
mov ecx, 0x5af764
mov byte [esp + 0x74], al
movzx eax, byte [edi + esi + 1]
mov byte [esp + 0x75], al
lea eax, [esp + 0x74]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x500250
test dl, dl
je 0x50024c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x500250
add eax, 2
add ecx, 2
test dl, dl
jne 0x500230
xor eax, eax
jmp 0x500255
sbb eax, eax
or eax, 1
test eax, eax
je 0x500271
movsx eax, byte [esi + edi + 2]
add eax, 4
add esi, eax
lea eax, [esi + 4]
cmp eax, dword [esp + 0x18]
jb 0x500213
jmp 0x500304
movsx eax, byte [esi + edi + 4]
add esi, 5
mov ecx, eax
mov edx, eax
shr ecx, 1
shr edx, 2
and ecx, 0xffffff01
and edx, 0xffffff01
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
test al, 1
je 0x5002be
mov eax, dword [esi + edi + 4]
mov ecx, dword [esi + edi]
add esi, 4
push eax
push ecx
call fcn.004ffe10
mov ecx, dword [esp + 0x1c]
add esp, 8
mov dword [ebx + 0x11c], eax
mov dword [ebx + 0x120], edx
test cl, cl
je 0x5002e2
mov eax, dword [esi + edi + 4]
mov ecx, dword [esi + edi]
add esi, 4
push eax
push ecx
call fcn.004ffe10
add esp, 8
mov dword [ebx + 0x10c], eax
mov dword [ebx + 0x110], edx
cmp byte [esp + 0x1c], 0
je 0x500304
push dword [esi + edi + 4]
push dword [esi + edi]
call fcn.004ffe10
add esp, 8
mov dword [ebx + 0x114], eax
mov dword [ebx + 0x118], edx
test edi, edi
je 0x500311
push edi
call fcn.0053f7f2
add esp, 4
mov eax, dword [esp + 0x198]
lea edi, [ebp + 8]
mov ecx, 0x4b
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x134], eax
xor eax, eax
jmp 0x500333
mov eax, 0x10000
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0053f778
add esp, 0x184
ret 8