Function at 0x403432
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2938
call fcn.00405270
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.00404e60
add esp, 0xc
push 0
lea edx, [ebp - 0x110]
push edx
push 0x1400
lea eax, [ebp - 0x291c]
push eax
mov ecx, dword [0x4107e0]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403967
push str._exit_
lea edx, [ebp - 0x291c]
push edx
call fcn.00405087
add esp, 8
test eax, eax
jne 0x4034f0
mov eax, dword [0x4107e0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x4107e8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4107e0], 0
mov dword [0x4107e8], 0
jmp 0x403967
push str._args_
lea edx, [ebp - 0x291c]
push edx
call fcn.00405087
add esp, 8
test eax, eax
je 0x403715
mov eax, dword [ebp - 0x110]
shl eax, 1
push eax
call fcn.00405238
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.00404e60
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.00405246
add esp, 8
push 0x1400
push 0
lea edx, [ebp - 0x291c]
push edx
call fcn.00404e60
add esp, 0xc
cmp dword [ebp - 0x104], 0
jne 0x403710
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 0x40367c
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 0x403641
cmp dword [ebp - 0x2930], 0x7d0
jle 0x4035f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40367c
mov eax, dword [ebp - 0x2920]
push eax
lea ecx, [ebp - 0x100]
push ecx
call fcn.004033f4
add esp, 8
push 0x1400
push 0
lea edx, [ebp - 0x291c]
push edx
call fcn.00404e60
add esp, 0xc
jmp 0x40347c
cmp dword [ebp - 0x292c], 0
jne 0x4036b6
mov eax, dword [ebp - 0x2920]
push eax
lea ecx, [ebp - 0x100]
push ecx
call fcn.004033f4
add esp, 8
push 0x1400
push 0
lea edx, [ebp - 0x291c]
push edx
call fcn.00404e60
add esp, 0xc
jmp 0x40347c
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 0x403708
mov ecx, dword [ebp - 0x2920]
push ecx
lea edx, [ebp - 0x100]
push edx
call fcn.004033f4
add esp, 8
push 0x1400
push 0
lea eax, [ebp - 0x291c]
push eax
call fcn.00404e60
add esp, 0xc
jmp 0x40347c
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40347c
push 0x40f804
mov ecx, dword [ebp - 0x114]
call fcn.00403b90
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x40376f
mov dword [ebp - 0x2920], 0
mov ecx, dword [ebp - 0x2920]
push ecx
lea edx, [ebp - 0x100]
push edx
call fcn.004033f4
add esp, 8
push 0x1400
push 0
lea eax, [ebp - 0x291c]
push eax
call fcn.00404e60
add esp, 0xc
jmp 0x40347c
push str.__Ljava_lang_String__V
push str.openSelectedFile
mov ecx, dword [ebp - 0x118]
push ecx
mov ecx, dword [ebp - 0x114]
call fcn.00403bf0
mov dword [ebp - 0x10c], eax
push 0x40f848
mov ecx, dword [ebp - 0x114]
call fcn.00403b90
test eax, eax
je 0x4037d0
push 0
push str.java_lang_String
mov ecx, dword [ebp - 0x114]
call fcn.00403b90
push eax
mov edx, dword [ebp - 0x2920]
push edx
mov ecx, dword [ebp - 0x114]
call fcn.00403ce0
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x2924], 0
jmp 0x4037eb
mov eax, dword [ebp - 0x2924]
add eax, 1
mov dword [ebp - 0x2924], eax
mov ecx, dword [ebp - 0x2924]
cmp ecx, dword [ebp - 0x2920]
jge 0x4038c4
mov edx, dword [ebp - 0x2924]
mov eax, dword [ebp + edx*4 - 0x100]
push eax
call fcn.004051be
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.00403c50
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x108], 0
jne 0x40383e
jmp 0x4037dc
cmp dword [ebp - 0x11c], 0
je 0x4038bf
push 0x40f870
lea eax, [ebp - 0x291c]
push eax
call fcn.00405087
add esp, 8
test eax, eax
jne 0x40389f
cmp dword [0x4107e0], 0
je 0x40387f
mov ecx, dword [0x4107e0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4107e0], 0
cmp dword [0x4107e8], 0
je 0x40389f
mov edx, dword [0x4107e8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4107e8], 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.00403d10
jmp 0x4037dc
cmp dword [ebp - 0x2920], 0
jne 0x4038fe
mov eax, dword [ebp - 0x2920]
push eax
lea ecx, [ebp - 0x100]
push ecx
call fcn.004033f4
add esp, 8
push 0x1400
push 0
lea edx, [ebp - 0x291c]
push edx
call fcn.00404e60
add esp, 0xc
jmp 0x40347c
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.00403ec0
add esp, 0x10
mov ecx, dword [ebp - 0x2920]
push ecx
lea edx, [ebp - 0x100]
push edx
call fcn.004033f4
add esp, 8
push 0x1400
push 0
lea eax, [ebp - 0x291c]
push eax
call fcn.00404e60
add esp, 0xc
mov dword [ebp - 0x2920], 0
mov dword [ebp - 0x104], 0
jmp 0x40347c
mov esp, ebp
pop ebp
ret 8