Function at 0x4089a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea edx, [ebp - 8]
sub esp, 0xf4
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xa4], 0x4f3670
mov dword [ebp - 0x9c], edx
lea edx, [ebp - 0xbc]
mov dword [ebp - 0xa0], 0x4f4aa4
mov dword [ebp - 0x98], 0x408e5e
mov dword [ebp - 0x94], esp
mov dword [esp], edx
call fcn.00458010
mov eax, dword [ebp - 0xc0]
mov dword [eax + 4], 0
mov dword [eax + 8], 0xffffffff
lea edx, [eax + 0xc]
mov dword [eax], 0x508e38
mov dword [eax + 0xc], 0
lea ecx, [eax + 0x20]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xcc], edx
mov dword [esp], eax
mov dword [ebp - 0xb8], 1
call fcn.00401630
mov eax, dword [ebp + 8]
sub esp, 4
lea ecx, [ebp - 0x60]
mov dword [esp], eax
mov dword [ebp - 0xb8], 3
call fcn.00401630
lea eax, [ebp - 0x78]
lea edx, [ebp - 0x60]
sub esp, 4
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [ebp - 0xb8], 2
call fcn.00405600
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x58]
cmp eax, edx
je 0x408a9d
mov dword [esp], eax
call fcn.004f28f0
mov dword [ebp - 0xc4], 1
jmp 0x408bc8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xb8], 5
call fcn.00403620
mov ebx, dword [ebp - 0xc0]
cmp eax, 0xffffffff
mov dword [ebx + 8], eax
je 0x408e50
mov dword [ebp - 0x84], 0
mov dword [esp], eax
lea edx, [ebp - 0x84]
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0xc], 2
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [ebp - 0xb8], 5
mov dword [ebp - 0xc8], eax
call eax
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0xc0]
lea edx, [ebp - 0x80]
mov dword [ebp - 0x80], 0
mov eax, dword [eax + 8]
mov dword [esp + 0xc], 1
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [ebp - 0xc8]
mov ecx, eax
mov eax, dword [ebp - 0x80]
xor ebx, ebx
sub esp, 0x10
mov edx, eax
xor eax, eax
add eax, ecx
adc edx, ebx
mov ebx, dword [ebp - 0xc0]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
mov ecx, dword [ebx + 0x10]
cmp ecx, dword [ebx + 0x14]
je 0x408e20
test ecx, ecx
je 0x408b8a
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0xc0]
add ecx, 8
mov dword [eax + 0x10], ecx
mov eax, dword [eax + 8]
mov dword [esp], eax
mov dword [ebp - 0xb8], 5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x20]
sub esp, 4
cmp eax, edx
je 0x408bc1
mov dword [esp], eax
call fcn.004f28f0
add dword [ebp - 0xc4], 1
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, 0xffffffff
test edx, edx
je 0x408be8
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x48]
mov dword [esp], eax
mov dword [ebp - 0xb8], 6
call fcn.00401570
mov eax, dword [ebp - 0xc4]
sub esp, 8
mov dword [esp + 8], eax
lea eax, [ebp - 0x48]
mov dword [esp + 4], eax
lea eax, [ebp - 0x28]
mov dword [esp], eax
mov dword [ebp - 0xb8], 4
call fcn.00405600
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x40]
cmp eax, edx
je 0x408c3f
mov dword [esp], eax
call fcn.004f28f0
cmp dword [ebp - 0xc4], 1
jbe 0x408ab0
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x74]
jne 0x408ab0
mov ebx, dword [ebp - 0x28]
test eax, eax
mov dword [ebp - 0xc8], ebx
jne 0x408e00
mov eax, dword [ebp - 0xc8]
lea edx, [ebp - 0x20]
cmp eax, edx
je 0x408c7e
mov dword [esp], eax
call fcn.004f28f0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov dword [esp], eax
mov dword [ebp - 0xb8], 6
call fcn.00401630
lea eax, [ebp - 0x28]
sub esp, 4
mov dword [esp + 8], 1
mov dword [esp + 4], eax
lea eax, [ebp - 0x60]
mov dword [esp], eax
mov dword [ebp - 0xb8], 7
call fcn.00405600
mov eax, dword [ebp - 0x28]
lea ebx, [ebp - 0x20]
cmp eax, ebx
je 0x408ccf
mov dword [esp], eax
call fcn.004f28f0
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xb8], 8
call fcn.00403620
mov edx, dword [ebp - 0xc0]
cmp eax, 0xffffffff
mov dword [edx + 8], eax
je 0x408e93
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x408dbe
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x20
mov dword [esp], eax
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x48]
mov dword [esp + 4], edx
mov dword [ebp - 0xb8], 8
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
cmp dword [ebp - 0x7c], 0x20
jne 0x408e87
lea eax, [ebp - 0x48]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x28]
mov dword [esp], eax
mov dword [ebp - 0xb8], 8
call fcn.0042c9b0
mov dword [esp], 0x14fc
call fcn.004f2930
lea ebx, [ebp - 0x48]
lea edx, [ebp - 0x28]
mov dword [esp + 4], 0x20
mov ecx, eax
mov dword [esp + 8], ebx
mov dword [esp], edx
mov dword [ebp - 0xb8], 9
mov dword [ebp - 0xd0], eax
call fcn.0042ac30
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0xd0]
sub esp, 0xc
mov dword [edx + 4], eax
mov dword [edx + 0x18], 0x20
mov dword [edx + 0x1c], 0
mov eax, dword [ebp - 0x60]
lea ebx, [ebp - 0x58]
cmp eax, ebx
je 0x408dd0
mov dword [esp], eax
call fcn.004f28f0
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x70]
cmp eax, edx
je 0x408de2
mov dword [esp], eax
call fcn.004f28f0
lea eax, [ebp - 0xbc]
mov dword [esp], eax
call fcn.004580a0
mov ebx, dword [ebp - 4]
leave
ret 8
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x78]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x408ab9
jmp 0x408c69
lea eax, [ebp - 0x48]
mov dword [esp], eax
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0xb8], 5
call fcn.004d7560
sub esp, 4
mov eax, dword [ebp - 0xc0]
jmp 0x408b96
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc8], eax
jmp 0x408c69
mov dword [esp], str.cannot_read_salt
call fcn.00402a80
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call fcn.00404f20
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x58]
cmp eax, edx
je 0x408eb0
mov dword [esp], eax
call fcn.004f28f0
mov ebx, dword [ebp - 0xc0]
mov eax, dword [ebx + 0x20]
lea edx, [ebx + 0x28]
cmp eax, edx
je 0x408ec8
mov dword [esp], eax
call fcn.004f28f0
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x408edd
mov dword [esp], eax
call fcn.004f28f0
mov ecx, dword [ebp - 0xc0]
add ecx, 4
call fcn.00464aa0
mov eax, dword [ebp - 0xc4]
mov dword [esp], eax
mov dword [ebp - 0xb8], 0xffffffff
call fcn.004583a0
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x40]
cmp eax, edx
je 0x408f15
mov dword [esp], eax
call fcn.004f28f0
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x70]
cmp eax, edx
jne 0x408ea8
jmp 0x408eb0