Function at 0x493fa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4941be
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 4
jb 0x494169
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp byte [eax], 2
jne 0x494169
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 2]
add eax, 4
cmp eax, dword [ebp - 8]
jne 0x494169
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 1]
sub al, 1
jb 0x494006
sub al, 4
jb 0x49405e
jmp 0x494169
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 2]
cmp eax, 0x14
jne 0x494169
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp - 4]
mov esi, eax
lea edi, [edx + 0x470]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
add eax, 0x470
push eax
push 0
push 0
push 0
push 0
xor ecx, ecx
mov dl, 1
mov eax, dword [0x493778]
call fcn.00493c60
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 4]
jmp 0x494169
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x468]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 2]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x460]
call fcn.00406b0c
cmp eax, dword [ebp - 0x18]
jge 0x4940b2
mov eax, dword [ebp - 4]
add eax, 0x460
xor ecx, ecx
mov edx, dword [ebp - 0x18]
call fcn.00407050
mov eax, dword [ebp - 4]
add eax, 0x460
call fcn.00406bd0
mov edx, dword [ebp - 4]
mov dword [edx + 0x464], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov dword [edx + 0x468], eax
mov eax, dword [ebp - 0x10]
cmp word [eax + 2], 0
jbe 0x4940e9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x464]
mov edx, dword [ebp - 0x14]
lea edx, [eax + edx]
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 2]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.00404860
mov eax, dword [ebp - 0x10]
cmp byte [eax + 1], 2
je 0x4940fb
mov eax, dword [ebp - 0x10]
cmp byte [eax + 1], 4
jne 0x494169
mov eax, dword [ebp - 0x10]
cmp byte [eax + 1], 2
jne 0x49410a
mov byte [ebp - 0x1d], 3
jmp 0x49410e
mov byte [ebp - 0x1d], 2
mov eax, dword [ebp - 4]
add eax, 0x470
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x468]
mov edx, 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x460]
call fcn.00406f98
mov eax, dword [ebp - 0x24]
push eax
push 0
push 0
push 0
mov cl, byte [ebp - 0x1d]
mov dl, 1
mov eax, dword [0x493778]
call fcn.00493c60
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x468], edx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 4]
push fcn.00493bd0
mov eax, dword [ebp - 4]
add eax, 0x30
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
push eax
call sub.kernel32.dll_ReadFileEx
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x4941a8
mov eax, dword [ebp - 4]
mov byte [eax + 8], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4941c5
lea eax, [ebp - 0x24]
call fcn.00406650
ret