Function at 0x40377c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2938
call fcn.004056a0
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.00404e10
add esp, 0xc
push 0
lea edx, [ebp - 0x110]
push edx
push 0x1400
lea eax, [ebp - 0x291c]
push eax
mov ecx, dword [0x411060]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403cb1
push str._exit_
lea edx, [ebp - 0x291c]
push edx
call fcn.004054d7
add esp, 8
test eax, eax
jne 0x40383a
mov eax, dword [0x411060]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x411068]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x411060], 0
mov dword [0x411068], 0
jmp 0x403cb1
push str._args_
lea edx, [ebp - 0x291c]
push edx
call fcn.004054d7
add esp, 8
test eax, eax
je 0x403a5f
mov eax, dword [ebp - 0x110]
shl eax, 1
push eax
call fcn.0040566b
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.00404e10
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.00405679
add esp, 8
push 0x1400
push 0
lea edx, [ebp - 0x291c]
push edx
call fcn.00404e10
add esp, 0xc
cmp dword [ebp - 0x104], 0
jne 0x403a5a
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 0x4039c6
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 0x40398b
cmp dword [ebp - 0x2930], 0x7d0
jle 0x40393d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4039c6
mov eax, dword [ebp - 0x2920]
push eax
lea ecx, [ebp - 0x100]
push ecx
call fcn.0040373e
add esp, 8
push 0x1400
push 0
lea edx, [ebp - 0x291c]
push edx
call fcn.00404e10
add esp, 0xc
jmp 0x4037c6
cmp dword [ebp - 0x292c], 0
jne 0x403a00
mov eax, dword [ebp - 0x2920]
push eax
lea ecx, [ebp - 0x100]
push ecx
call fcn.0040373e
add esp, 8
push 0x1400
push 0
lea edx, [ebp - 0x291c]
push edx
call fcn.00404e10
add esp, 0xc
jmp 0x4037c6
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 0x403a52
mov ecx, dword [ebp - 0x2920]
push ecx
lea edx, [ebp - 0x100]
push edx
call fcn.0040373e
add esp, 8
push 0x1400
push 0
lea eax, [ebp - 0x291c]
push eax
call fcn.00404e10
add esp, 0xc
jmp 0x4037c6
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4037c6
push 0x410020
mov ecx, dword [ebp - 0x114]
call fcn.00403fb0
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x403ab9
mov dword [ebp - 0x2920], 0
mov ecx, dword [ebp - 0x2920]
push ecx
lea edx, [ebp - 0x100]
push edx
call fcn.0040373e
add esp, 8
push 0x1400
push 0
lea eax, [ebp - 0x291c]
push eax
call fcn.00404e10
add esp, 0xc
jmp 0x4037c6
push str.__Ljava_lang_String__V
push str.openSelectedFile
mov ecx, dword [ebp - 0x118]
push ecx
mov ecx, dword [ebp - 0x114]
call fcn.00404010
mov dword [ebp - 0x10c], eax
push 0x410064
mov ecx, dword [ebp - 0x114]
call fcn.00403fb0
test eax, eax
je 0x403b1a
push 0
push str.java_lang_String
mov ecx, dword [ebp - 0x114]
call fcn.00403fb0
push eax
mov edx, dword [ebp - 0x2920]
push edx
mov ecx, dword [ebp - 0x114]
call fcn.00404100
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x2924], 0
jmp 0x403b35
mov eax, dword [ebp - 0x2924]
add eax, 1
mov dword [ebp - 0x2924], eax
mov ecx, dword [ebp - 0x2924]
cmp ecx, dword [ebp - 0x2920]
jge 0x403c0e
mov edx, dword [ebp - 0x2924]
mov eax, dword [ebp + edx*4 - 0x100]
push eax
call fcn.00404deb
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.00404070
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x108], 0
jne 0x403b88
jmp 0x403b26
cmp dword [ebp - 0x11c], 0
je 0x403c09
push 0x41008c
lea eax, [ebp - 0x291c]
push eax
call fcn.004054d7
add esp, 8
test eax, eax
jne 0x403be9
cmp dword [0x411060], 0
je 0x403bc9
mov ecx, dword [0x411060]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x411060], 0
cmp dword [0x411068], 0
je 0x403be9
mov edx, dword [0x411068]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x411068], 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.00404130
jmp 0x403b26
cmp dword [ebp - 0x2920], 0
jne 0x403c48
mov eax, dword [ebp - 0x2920]
push eax
lea ecx, [ebp - 0x100]
push ecx
call fcn.0040373e
add esp, 8
push 0x1400
push 0
lea edx, [ebp - 0x291c]
push edx
call fcn.00404e10
add esp, 0xc
jmp 0x4037c6
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.004042e0
add esp, 0x10
mov ecx, dword [ebp - 0x2920]
push ecx
lea edx, [ebp - 0x100]
push edx
call fcn.0040373e
add esp, 8
push 0x1400
push 0
lea eax, [ebp - 0x291c]
push eax
call fcn.00404e10
add esp, 0xc
mov dword [ebp - 0x2920], 0
mov dword [ebp - 0x104], 0
jmp 0x4037c6
mov esp, ebp
pop ebp
ret 8