Function at 0x4300dc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x10], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d5c
xor eax, eax
push ebp
push 0x43041c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
test bl, bl
je 0x43029d
xor eax, eax
push ebp
push 0x430218
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x5c]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x430438
call fcn.00404e04
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404dc4
mov eax, dword [ebp - 0x5c]
call fcn.00404d6c
mov edx, eax
lea eax, [ebp - 0x58]
call fcn.00404aa4
mov eax, dword [ebp - 0x58]
push eax
push 0x43043c
mov ecx, dword [0x435664]
mov dl, 1
mov eax, dword [0x41100c]
call fcn.0041384c
mov edi, eax
lea edx, [ebp - 0x2a]
mov ecx, 0xe
mov eax, edi
call fcn.00413280
lea edx, [ebp - 0x52]
mov ecx, 0x28
mov eax, edi
call fcn.00413280
mov ebx, dword [ebp - 0x32]
push ebx
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x4300b8]
call fcn.00405854
add esp, 4
lea edx, [ebp - 0x10]
mov ecx, ebx
mov eax, edi
call fcn.00413280
mov eax, dword [ebp - 0x4e]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x4a]
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x3e]
test ebx, ebx
jne 0x4301f0
mov ebx, dword [ebp - 0x18]
imul ebx, dword [ebp - 0x1c]
movzx eax, word [ebp - 0x44]
imul ebx, eax
test ebx, ebx
jns 0x4301ed
add ebx, 7
sar ebx, 3
mov eax, ebx
call fcn.00402a04
mov esi, eax
mov edx, esi
mov ecx, ebx
mov eax, edi
call fcn.00413280
mov eax, edi
call fcn.00403bf4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4303bb
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404d6c
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
cmp edi, 0xffffffff
jne 0x4302ed
push 0
push 0x430474
lea eax, [ebp - 0x68]
mov ecx, dword [ebp - 4]
mov edx, 0x4304b0
call fcn.00404bb8
mov eax, dword [ebp - 0x68]
call fcn.00404d6c
push eax
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x4303eb
push 0
lea eax, [ebp - 0x14]
push eax
push 0xe
lea eax, [ebp - 0x2a]
push eax
push edi
call sub.kernel32.dll_ReadFile_1
push 0
lea eax, [ebp - 0x14]
push eax
push 0x28
lea eax, [ebp - 0x52]
push eax
push edi
call sub.kernel32.dll_ReadFile_1
mov ebx, dword [ebp - 0x32]
push ebx
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x4300b8]
call fcn.00405854
add esp, 4
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
call sub.kernel32.dll_ReadFile_1
cmp ebx, dword [ebp - 0x14]
je 0x430359
push 0
push 0x430474
push 0x4304c0
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x4303eb
mov eax, dword [ebp - 0x4e]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x4a]
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x3e]
test ebx, ebx
jne 0x430384
mov ebx, dword [ebp - 0x18]
imul ebx, dword [ebp - 0x1c]
movzx eax, word [ebp - 0x44]
imul ebx, eax
test ebx, ebx
jns 0x430381
add ebx, 7
sar ebx, 3
mov eax, ebx
call fcn.00402a04
mov esi, eax
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push edi
call sub.kernel32.dll_ReadFile_1
cmp ebx, dword [ebp - 0x14]
je 0x4303b5
push 0
push 0x430474
push 0x4304d8
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x4303eb
push edi
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp - 0x18]
imul edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.0042ffe0
push esi
mov cx, 0x1907
mov dx, word [ebp - 0x1c]
mov ax, word [ebp - 0x18]
call fcn.0042fff8
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, esi
call fcn.00402a34
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430423
lea eax, [ebp - 0x68]
mov edx, 5
call fcn.004048d0
lea eax, [ebp - 0x10]
mov edx, dword [0x4300b8]
call fcn.00405860
lea eax, [ebp - 4]
call fcn.004048ac
ret