Function at 0x403420
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2938
call fcn.004052d0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x2920], 0
push 0x1400
push 0
lea ecx, [ebp - 0x291c]
push ecx
call fcn.00404ec0
add esp, 0xc
push 0
lea edx, [ebp - 0x110]
push edx
push 0x1400
lea eax, [ebp - 0x291c]
push eax
mov ecx, dword [0x410850]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403955
push 0x40f7e0
lea edx, [ebp - 0x291c]
push edx
call fcn.004050e7
add esp, 8
test eax, eax
jne 0x4034de
mov eax, dword [0x410850]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x410858]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x410850], 0
mov dword [0x410858], 0
jmp 0x403955
push 0x40f7f0
lea edx, [ebp - 0x291c]
push edx
call fcn.004050e7
add esp, 8
test eax, eax
je 0x403703
mov eax, dword [ebp - 0x110]
shl eax, 1
push eax
call fcn.00405298
add esp, 4
mov dword [ebp - 0x2934], eax
mov ecx, dword [ebp - 0x2920]
mov edx, dword [ebp - 0x2934]
mov dword [ebp + ecx*4 - 0x100], edx
mov eax, dword [ebp - 0x110]
push eax
push 0
mov ecx, dword [ebp - 0x2920]
mov edx, dword [ebp + ecx*4 - 0x100]
push edx
call fcn.00404ec0
add esp, 0xc
lea eax, [ebp - 0x291c]
push eax
mov ecx, dword [ebp - 0x2920]
mov edx, dword [ebp + ecx*4 - 0x100]
mov dword [ebp - 0x2938], edx
mov eax, dword [ebp - 0x2938]
push eax
mov ecx, dword [ebp - 0x2920]
add ecx, 1
mov dword [ebp - 0x2920], ecx
call fcn.004052a6
add esp, 8
push 0x1400
push 0
lea edx, [ebp - 0x291c]
push edx
call fcn.00404ec0
add esp, 0xc
cmp dword [ebp - 0x104], 0
jne 0x4036fe
mov dword [ebp - 0x2928], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x292c], eax
cmp dword [ebp - 0x292c], 0xffffffff
jne 0x40366a
mov dword [ebp - 0x2930], 0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x292c], eax
mov edx, dword [ebp - 0x2930]
add edx, 0x64
mov dword [ebp - 0x2930], edx
cmp dword [ebp - 0x292c], 0xffffffff
jne 0x40362f
cmp dword [ebp - 0x2930], 0x7d0
jle 0x4035e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40366a
mov eax, dword [ebp - 0x2920]
push eax
lea ecx, [ebp - 0x100]
push ecx
call fcn.004033e2
add esp, 8
push 0x1400
push 0
lea edx, [ebp - 0x291c]
push edx
call fcn.00404ec0
add esp, 0xc
jmp 0x40346a
cmp dword [ebp - 0x292c], 0
jne 0x4036a4
mov eax, dword [ebp - 0x2920]
push eax
lea ecx, [ebp - 0x100]
push ecx
call fcn.004033e2
add esp, 8
push 0x1400
push 0
lea edx, [ebp - 0x291c]
push edx
call fcn.00404ec0
add esp, 0xc
jmp 0x40346a
mov dword [ebp - 0x104], 1
mov eax, dword [ebp - 0x292c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4036f6
mov ecx, dword [ebp - 0x2920]
push ecx
lea edx, [ebp - 0x100]
push edx
call fcn.004033e2
add esp, 8
push 0x1400
push 0
lea eax, [ebp - 0x291c]
push eax
call fcn.00404ec0
add esp, 0xc
jmp 0x40346a
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40346a
push 0x40f800
mov ecx, dword [ebp - 0x114]
call fcn.00403b80
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x40375d
mov dword [ebp - 0x2920], 0
mov ecx, dword [ebp - 0x2920]
push ecx
lea edx, [ebp - 0x100]
push edx
call fcn.004033e2
add esp, 8
push 0x1400
push 0
lea eax, [ebp - 0x291c]
push eax
call fcn.00404ec0
add esp, 0xc
jmp 0x40346a
push 0x40f818
push 0x40f830
mov ecx, dword [ebp - 0x118]
push ecx
mov ecx, dword [ebp - 0x114]
call fcn.00403be0
mov dword [ebp - 0x10c], eax
push 0x40f844
mov ecx, dword [ebp - 0x114]
call fcn.00403b80
test eax, eax
je 0x4037be
push 0
push 0x40f858
mov ecx, dword [ebp - 0x114]
call fcn.00403b80
push eax
mov edx, dword [ebp - 0x2920]
push edx
mov ecx, dword [ebp - 0x114]
call fcn.00403cd0
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x2924], 0
jmp 0x4037d9
mov eax, dword [ebp - 0x2924]
add eax, 1
mov dword [ebp - 0x2924], eax
mov ecx, dword [ebp - 0x2924]
cmp ecx, dword [ebp - 0x2920]
jge 0x4038b2
mov edx, dword [ebp - 0x2924]
mov eax, dword [ebp + edx*4 - 0x100]
push eax
call fcn.0040521e
add esp, 4
push eax
mov ecx, dword [ebp - 0x2924]
mov edx, dword [ebp + ecx*4 - 0x100]
push edx
mov ecx, dword [ebp - 0x114]
call fcn.00403c40
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x108], 0
jne 0x40382c
jmp 0x4037ca
cmp dword [ebp - 0x11c], 0
je 0x4038ad
push 0x40f86c
lea eax, [ebp - 0x291c]
push eax
call fcn.004050e7
add esp, 8
test eax, eax
jne 0x40388d
cmp dword [0x410850], 0
je 0x40386d
mov ecx, dword [0x410850]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x410850], 0
cmp dword [0x410858], 0
je 0x40388d
mov edx, dword [0x410858]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x410858], 0
mov eax, dword [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x2924]
push ecx
mov edx, dword [ebp - 0x108]
push edx
mov ecx, dword [ebp - 0x114]
call fcn.00403d00
jmp 0x4037ca
cmp dword [ebp - 0x2920], 0
jne 0x4038ec
mov eax, dword [ebp - 0x2920]
push eax
lea ecx, [ebp - 0x100]
push ecx
call fcn.004033e2
add esp, 8
push 0x1400
push 0
lea edx, [ebp - 0x291c]
push edx
call fcn.00404ec0
add esp, 0xc
jmp 0x40346a
mov eax, dword [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x10c]
push ecx
mov edx, dword [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x114]
push eax
call fcn.00403eb0
add esp, 0x10
mov ecx, dword [ebp - 0x2920]
push ecx
lea edx, [ebp - 0x100]
push edx
call fcn.004033e2
add esp, 8
push 0x1400
push 0
lea eax, [ebp - 0x291c]
push eax
call fcn.00404ec0
add esp, 0xc
mov dword [ebp - 0x2920], 0
mov dword [ebp - 0x104], 0
jmp 0x40346a
mov esp, ebp
pop ebp
ret 8