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

Disassembly:
sub esp, 0x17c
mov eax, dword [0x57f578]
xor eax, esp
mov dword [esp + 0x174], eax
push ebx
mov ebx, dword [esp + 0x188]
push ebp
push esi
mov esi, dword [esp + 0x18c]
mov ebp, ecx
push edi
cmp esi, 0xffffffff
jl 0x495172
mov ecx, dword [ebp]
cmp esi, dword [ecx + 4]
jge 0x495172
cmp dword [ebp + 4], 0xffffffff
je 0x494db8
call fcn.00494c60
mov dword [ebp + 4], 0xffffffff
cmp esi, dword [ebp + 0x138]
jne 0x494ddf
cmp esi, 0xffffffff
je 0x494ddf
lea esi, [ebp + 8]
mov ecx, 0x4c
mov edi, ebx
xor eax, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x495177
mov ecx, dword [ebp]
cmp esi, 0xffffffff
jne 0x494e5b
mov eax, dword [ecx + 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
mov dword [ebx + 0x12c], 0
jmp 0x495177
cmp esi, dword [ecx + 0x10]
jge 0x494e68
call fcn.004946e0
mov ecx, dword [ebp]
cmp dword [ecx + 0x18], 0
je 0x49516b
cmp dword [ecx + 0x10], esi
jge 0x494e87
mov ecx, dword [ebp]
call fcn.00494720
mov ecx, dword [ebp]
cmp dword [ecx + 0x10], esi
jl 0x494e77
sub esp, 0x10
lea eax, [esp + 0x88]
lea edx, [esp + 0x38]
push 0x104
push eax
push 0
call fcn.004943e0
mov ecx, dword [ebp]
lea eax, [esp + 0x34]
add esp, 0x1c
lea edx, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00494780
add esp, 8
test eax, eax
jne 0x49516b
mov eax, dword [ebp]
mov edx, dword [eax]
mov ecx, dword [edx + 0x1c]
test ecx, ecx
je 0x494eeb
mov eax, dword [ecx]
push 0
push dword [esp + 0x18]
call dword [eax + 8]
test eax, eax
je 0x494f14
mov eax, 0x800
jmp 0x495177
cmp byte [edx], 0
je 0x494f0d
cmp byte [edx + 1], 0
je 0x494f45
mov eax, dword [edx + 0xc]
add eax, dword [esp + 0x14]
push 0
push 0
push eax
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x494f14
mov eax, dword [esp + 0x14]
mov dword [edx + 0x18], eax
mov esi, dword [esp + 0x18]
push esi
call fcn.004e6ffd
mov ecx, dword [ebp]
add esp, 4
mov edi, eax
mov edx, 1
push dword [ecx]
mov ecx, edi
push esi
call fcn.00493e00
add esp, 8
cmp eax, esi
je 0x494f4f
push edi
call fcn.004e6ff8
add esp, 4
mov eax, 0x800
jmp 0x495177
mov eax, dword [ebp]
lea ecx, [ebx + 4]
mov eax, dword [eax + 0x10]
mov dword [ebx], eax
lea eax, [esp + 0x78]
push eax
call fcn.00490b20
mov eax, dword [esp + 0x5c]
mov ecx, eax
shr ecx, 1
mov edx, eax
and ecx, 0xffffff01
shr edx, 5
mov dword [esp + 0x14], ecx
and dl, 1
mov ecx, eax
mov dword [ebx + 0x108], 0x80
shr ecx, 2
and ecx, 0xffffff01
mov dword [esp + 0x1c], ecx
mov ecx, 0x80
test eax, 0x40000010
je 0x494fb2
mov dword [ebx + 0x108], 0x90
mov ecx, 0x90
test dl, dl
je 0x494fbf
or ecx, 0x20
mov dword [ebx + 0x108], ecx
cmp byte [esp + 0x14], 0
je 0x494fcf
or ecx, 2
mov dword [ebx + 0x108], ecx
cmp byte [esp + 0x1c], 0
je 0x494fdf
or ecx, 4
mov dword [ebx + 0x108], ecx
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x124], eax
mov eax, dword [esp + 0x44]
mov dword [ebx + 0x128], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x12c], eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x3c]
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov ecx, dword [esp + 0x20]
xor esi, esi
cmp dword [esp + 0x18], 4
mov eax, dword [esp + 0x24]
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 0x495141
mov byte [esp + 0x16], 0
nop
movzx eax, byte [esi + edi]
mov ecx, 0x556e94
mov byte [esp + 0x14], al
movzx eax, byte [edi + esi + 1]
mov byte [esp + 0x15], al
lea eax, [esp + 0x14]
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x495090
test dl, dl
je 0x49508c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x495090
add eax, 2
add ecx, 2
test dl, dl
jne 0x495070
xor eax, eax
jmp 0x495095
sbb eax, eax
or eax, 1
test eax, eax
je 0x4950b1
movsx eax, byte [esi + edi + 2]
add eax, 4
add esi, eax
lea eax, [esi + 4]
cmp eax, dword [esp + 0x18]
jb 0x495050
jmp 0x495141
mov al, byte [esi + edi + 4]
add esi, 5
movsx ecx, al
mov edx, ecx
shr ecx, 2
shr edx, 1
and cl, 1
and edx, 0xffffff01
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
test al, 1
je 0x4950fb
mov eax, dword [esi + edi + 4]
mov ecx, dword [esi + edi]
add esi, 4
push eax
push ecx
call fcn.00494cd0
mov dword [ebx + 0x120], edx
add esp, 8
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0x11c], eax
test dl, dl
je 0x49511f
mov eax, dword [esi + edi + 4]
mov ecx, dword [esi + edi]
add esi, 4
push eax
push ecx
call fcn.00494cd0
add esp, 8
mov dword [ebx + 0x10c], eax
mov dword [ebx + 0x110], edx
cmp byte [esp + 0x18], 0
je 0x495141
push dword [esi + edi + 4]
push dword [esi + edi]
call fcn.00494cd0
add esp, 8
mov dword [ebx + 0x114], eax
mov dword [ebx + 0x118], edx
test edi, edi
je 0x49514e
push edi
call fcn.004e6ff8
add esp, 4
mov eax, dword [esp + 0x190]
lea edi, [ebp + 8]
mov ecx, 0x4c
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x138], eax
xor eax, eax
jmp 0x495177
mov eax, 0x700
jmp 0x495177
mov eax, 0x10000
mov ecx, dword [esp + 0x184]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e679a
add esp, 0x17c
ret 8