Function at 0x4709e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4768f2
mov eax, dword fs:[0]
push eax
mov eax, 0x10150
call fcn.00446f90
mov eax, dword [0x4922f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1012c], 0
push 0
lea ecx, [ebp - 0x34]
call fcn.00401bb0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0045f220
add esp, 8
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x34]
call fcn.00418f20
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x470b9a
lea edx, [ebp - 0x100b8]
push edx
call fcn.00401380
add esp, 4
mov dword [ebp - 0x10130], eax
mov eax, dword [ebp - 0x10130]
mov dword [ebp - 0x10134], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
push ecx
push str.Error_opening
lea edx, [ebp - 0x100d4]
push edx
call fcn.00402cb0
add esp, 0xc
mov dword [ebp - 0x10138], eax
mov eax, dword [ebp - 0x10138]
mov dword [ebp - 0x1013c], eax
mov byte [ebp - 4], 2
push 0x483c48
mov ecx, dword [ebp - 0x1013c]
push ecx
lea edx, [ebp - 0x100f0]
push edx
call fcn.00402d60
add esp, 0xc
mov dword [ebp - 0x10140], eax
mov eax, dword [ebp - 0x10140]
mov dword [ebp - 0x10144], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10134]
push ecx
mov edx, dword [ebp - 0x10144]
push edx
lea eax, [ebp - 0x1010c]
push eax
call fcn.00402df0
add esp, 0xc
mov dword [ebp - 0x10148], eax
mov ecx, dword [ebp - 0x10148]
mov dword [ebp - 0x1014c], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x1014c]
push edx
mov ecx, 0x495ab8
call fcn.004016f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1010c]
call fcn.004016d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x100f0]
call fcn.004016d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x100d4]
call fcn.004016d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x100b8]
call fcn.004016d0
mov ecx, dword [ebp + 8]
call fcn.00401620
mov eax, dword [ebp - 0x1012c]
or eax, 1
mov dword [ebp - 0x1012c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401bf0
mov eax, dword [ebp + 8]
jmp 0x470dae
lea ecx, [ebp - 0x10094]
push ecx
call fcn.0045b240
add esp, 4
mov byte [ebp - 0x25], 0
push 0
lea edx, [ebp - 0x10098]
push edx
push 0xffff
lea eax, [ebp - 0x10034]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x470c19
mov byte [ebp - 0x25], 1
lea edx, [ebp - 0x10128]
push edx
call fcn.00401380
add esp, 4
mov dword [ebp - 0x10150], eax
mov eax, dword [ebp - 0x10150]
mov dword [ebp - 0x10154], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10154]
push ecx
mov ecx, 0x495ab8
call fcn.004016f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10128]
call fcn.004016d0
mov edx, dword [ebp - 0x10098]
push edx
lea eax, [ebp - 0x10034]
push eax
lea ecx, [ebp - 0x10094]
push ecx
call fcn.0045b2b0
add esp, 0xc
movzx edx, byte [ebp - 0x25]
test edx, edx
jne 0x470c4b
cmp dword [ebp - 0x10098], 0
ja 0x470bad
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x10094]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.0045b2f0
add esp, 8
movzx eax, byte [ebp - 0x25]
test eax, eax
je 0x470c9e
mov ecx, dword [ebp + 8]
call fcn.00401620
mov ecx, dword [ebp - 0x1012c]
or ecx, 1
mov dword [ebp - 0x1012c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401bf0
mov eax, dword [ebp + 8]
jmp 0x470dae
mov dword [ebp - 0x1009c], 0
jmp 0x470cb9
mov edx, dword [ebp - 0x1009c]
add edx, 1
mov dword [ebp - 0x1009c], edx
cmp dword [ebp - 0x1009c], 0x14
jge 0x470d77
mov eax, dword [ebp - 0x1009c]
movzx ecx, byte [ebp + eax - 0x24]
sar ecx, 4
cmp ecx, 0xa
jge 0x470cf2
mov edx, dword [ebp - 0x1009c]
movzx eax, byte [ebp + edx - 0x24]
sar eax, 4
add eax, 0x30
mov dword [ebp - 0x10158], eax
jmp 0x470d09
mov ecx, dword [ebp - 0x1009c]
movzx edx, byte [ebp + ecx - 0x24]
sar edx, 4
add edx, 0x57
mov dword [ebp - 0x10158], edx
mov eax, dword [ebp - 0x1009c]
mov cl, byte [ebp - 0x10158]
mov byte [ebp + eax*2 - 0x10034], cl
mov edx, dword [ebp - 0x1009c]
movzx eax, byte [ebp + edx - 0x24]
and eax, 0xf
cmp eax, 0xa
jge 0x470d48
mov ecx, dword [ebp - 0x1009c]
movzx edx, byte [ebp + ecx - 0x24]
and edx, 0xf
add edx, 0x30
mov dword [ebp - 0x1015c], edx
jmp 0x470d5f
mov eax, dword [ebp - 0x1009c]
movzx ecx, byte [ebp + eax - 0x24]
and ecx, 0xf
add ecx, 0x57
mov dword [ebp - 0x1015c], ecx
mov edx, dword [ebp - 0x1009c]
mov al, byte [ebp - 0x1015c]
mov byte [ebp + edx*2 - 0x10033], al
jmp 0x470caa
mov byte [ebp - 0x1000c], 0
lea ecx, [ebp - 0x10034]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401650
mov edx, dword [ebp - 0x1012c]
or edx, 1
mov dword [ebp - 0x1012c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401bf0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00442777
mov esp, ebp
pop ebp
ret