Function at 0x475d10
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 0x475f2e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 4
jb 0x475ed9
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 0x475ed9
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 2]
add eax, 4
cmp eax, dword [ebp - 8]
jne 0x475ed9
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 1]
sub al, 1
jb 0x475d76
sub al, 4
jb 0x475dce
jmp 0x475ed9
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 2]
cmp eax, 0x14
jne 0x475ed9
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 [0x475548]
call fcn.004759d0
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 4]
jmp 0x475ed9
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.00406a8c
cmp eax, dword [ebp - 0x18]
jge 0x475e22
mov eax, dword [ebp - 4]
add eax, 0x460
xor ecx, ecx
mov edx, dword [ebp - 0x18]
call fcn.00407020
mov eax, dword [ebp - 4]
add eax, 0x460
call fcn.00406b50
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 0x475e59
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 0x475e6b
mov eax, dword [ebp - 0x10]
cmp byte [eax + 1], 4
jne 0x475ed9
mov eax, dword [ebp - 0x10]
cmp byte [eax + 1], 2
jne 0x475e7a
mov byte [ebp - 0x1d], 3
jmp 0x475e7e
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.00406ef8
mov eax, dword [ebp - 0x24]
push eax
push 0
push 0
push 0
mov cl, byte [ebp - 0x1d]
mov dl, 1
mov eax, dword [0x475548]
call fcn.004759d0
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.00475940
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 0x475f18
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 0x475f35
lea eax, [ebp - 0x24]
call fcn.004065d0
ret