Function at 0x4072a8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 1], cl
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40795e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 2], 0
mov dword [0x40a648], 0x4034b51
dec dword [0x40a648]
mov byte [ebp - 9], 0
mov eax, dword [0x409254]
mov eax, dword [eax]
xor edx, edx
call fcn.00407f2c
inc eax
jne 0x407315
push 0x10
push 0x407970
push 0x40797c
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x40793b
push esi
push ebx
call sub.user32.dll_GetDlgItem
mov dword [ebp - 0x20], eax
mov eax, 0x102
call fcn.00402454
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x407934
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x409238]
mov dword [eax], 0xffffffff
mov eax, dword [0x409228]
mov byte [eax], 0
cmp byte [ebp - 1], 0
je 0x40787a
push 0
push 0
push 0x184
mov eax, dword [ebp - 0x20]
push eax
call sub.user32.dll_SendMessageA
jmp 0x40787a
mov eax, dword [0x409234]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
push 0
lea eax, [ebp - 0x28]
push eax
movzx eax, word [0x40a672]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x40a650]
push eax
call sub.kernel32.dll_ReadFile_1
lea ecx, [ebp - 0x18]
mov dx, word [0x40a672]
mov eax, dword [ebp - 8]
call fcn.004081fc
cmp dword [ebp - 0x18], 0
jne 0x4073ca
push 0x10
push 0x407970
push 0x40799c
push 0
call sub.user32.dll_MessageBoxA_1
call fcn.00402a04
jmp 0x40793b
mov eax, dword [0x409228]
cmp byte [eax], 0
jne 0x4073fe
mov edx, dword [ebp - 0x18]
mov eax, 0x4079bc
call fcn.00403218
test eax, eax
jg 0x4073f6
mov edx, dword [ebp - 0x18]
mov eax, 0x4079c8
call fcn.00403218
test eax, eax
jle 0x4073fe
mov eax, dword [0x409228]
mov byte [eax], 1
cmp byte [ebp - 1], 0
je 0x407422
mov eax, dword [ebp - 0x18]
call fcn.00403150
push eax
push 0
push 0x180
mov eax, dword [ebp - 0x20]
push eax
call sub.user32.dll_SendMessageA
jmp 0x40785e
mov eax, dword [ebp - 0x18]
call fcn.00403150
mov edx, eax
mov eax, dword [ebp - 0x20]
call fcn.00407dd8
test al, al
je 0x40785e
mov byte [ebp - 9], 0
mov ax, word [0x40a65e]
and ax, 1
cmp ax, 1
jne 0x407589
sub dword [0x40a64c], 0xc
xor eax, eax
push ebp
push 0x40757d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x18
call fcn.00402454
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0x28]
push eax
push 0xc
mov ebx, dword [ebp - 0x10]
push ebx
mov eax, dword [0x40a650]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, dword [ebp - 0x10]
lea edx, [eax + 0xc]
mov eax, ebx
mov ecx, 0xc
call fcn.00402554
xor eax, eax
push ebp
push 0x40756c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x409240]
cmp dword [eax], 0
je 0x4074df
mov eax, dword [0x40a666]
push eax
mov eax, dword [0x40a662]
push eax
mov eax, dword [0x409240]
mov eax, dword [eax]
push eax
mov cx, word [0x40a65e]
mov dl, 0xc
mov eax, dword [ebp - 0x10]
call fcn.00407bf4
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x407556
xor ebx, ebx
push 0x4067b8
mov edx, 0x4079cc
mov eax, dword [0x409258]
mov eax, dword [eax]
xor ecx, ecx
call fcn.00403ee8
lea ecx, [ebp - 0x48]
mov edx, dword [0x409270]
mov dx, word [edx]
mov eax, dword [0x409230]
call fcn.004081fc
mov edx, dword [ebp - 0x48]
mov eax, dword [0x409240]
call fcn.00402e84
mov eax, dword [0x40a666]
push eax
mov eax, dword [0x40a662]
push eax
mov eax, dword [0x409240]
mov eax, dword [eax]
push eax
mov cx, word [0x40a65e]
mov dl, 0xc
mov eax, dword [ebp - 0x10]
call fcn.00407bf4
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x407556
inc ebx
cmp bl, 3
jne 0x4074e7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407573
mov eax, dword [ebp - 0x10]
call fcn.0040246c
ret
mov byte [ebp - 9], 1
cmp byte [ebp - 9], 0
je 0x407887
mov eax, dword [0x409264]
call fcn.0040834c
call fcn.00407f14
push eax
mov eax, dword [0x409264]
call fcn.00408384
lea ecx, [ebp - 0x48]
pop edx
call fcn.004081fc
push dword [ebp - 0x48]
push 0x4079bc
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.0040304c
mov eax, dword [ebp - 0x1c]
call fcn.00403150
mov ebx, eax
mov eax, ebx
call fcn.004080c0
test al, al
je 0x407673
mov eax, dword [0x409260]
mov al, byte [eax]
dec al
je 0x4075ff
dec al
je 0x40761c
jmp 0x4076af
mov eax, dword [0x409238]
mov eax, dword [eax]
push eax
push 0
push 0x185
mov eax, dword [ebp - 0x20]
push eax
call sub.user32.dll_SendMessageA
jmp 0x40785e
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x1c]
call fcn.0040801c
mov edx, dword [ebp - 0x48]
mov eax, dword [0x409244]
call fcn.00402e84
push 0x406614
mov edx, 0x4079d4
mov eax, dword [0x409258]
mov eax, dword [eax]
xor ecx, ecx
call fcn.00403ee8
mov eax, dword [0x40925c]
cmp byte [eax], 0
jne 0x4076af
mov eax, dword [0x409238]
mov eax, dword [eax]
push eax
push 0
push 0x185
mov eax, dword [ebp - 0x20]
push eax
call sub.user32.dll_SendMessageA
jmp 0x40785e
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
call fcn.00407f54
mov eax, dword [ebp - 0x14]
call fcn.004082a4
mov eax, dword [ebp - 0x14]
call fcn.00403150
mov esi, eax
mov eax, esi
call fcn.004080c0
test al, al
jne 0x4076af
push 0x10
push 0x4079e0
push esi
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x407887
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push ebx
call sub.kernel32.dll_CreateFileA_1
mov dword [0x40a654], eax
cmp dword [0x40a654], 0xffffffff
je 0x407816
xor eax, eax
push ebp
push 0x40780f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4077c1
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x44]
push eax
call sub.user32.dll_PeekMessageA
lea eax, [ebp - 0x44]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x44]
push eax
call sub.user32.dll_DispatchMessageA
mov dword [0x40a638], 0xffffffff
mov eax, dword [0x40a66a]
mov dword [0x40a64c], eax
mov ax, word [0x40a65e]
and ax, 1
cmp ax, 1
jne 0x407743
sub dword [0x40a64c], 0xc
mov ax, word [0x40a660]
sub ax, 1
jb 0x407757
sub ax, 7
je 0x40775e
jmp 0x407765
call fcn.00407e10
jmp 0x40778f
call fcn.00404fe0
jmp 0x40778f
push 0x10
push 0x407970
push 0x4079f8
push 0
call sub.user32.dll_MessageBoxA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00402a04
call fcn.00402a04
jmp 0x40793b
mov eax, dword [0x40a638]
xor eax, 0xffffffff
cmp eax, dword [0x40a666]
jne 0x4077b7
mov eax, dword [0x409238]
mov eax, dword [eax]
push eax
push 0
push 0x185
mov eax, dword [ebp - 0x20]
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4077cb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40785e
mov edx, dword [0x40a662]
mov eax, dword [0x40a654]
call fcn.00407d14
mov eax, dword [0x40a654]
push eax
call sub.kernel32.dll_CloseHandle_1
test eax, eax
jne 0x40780e
push 0x10
push 0x407a14
mov eax, dword [ebp - 0x1c]
call fcn.00403150
push eax
push 0
call sub.user32.dll_MessageBoxA_1
ret
mov eax, dword [ebp - 0x1c]
call fcn.00403150
mov ebx, eax
push ebx
call sub.kernel32.dll_GetFileAttributesA
mov esi, eax
push ebx
call sub.kernel32.dll_GetFileAttributesA
and eax, 0xffffffef
cmp esi, eax
jne 0x407846
push 0x10
push 0x407a30
push ebx
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x40785e
mov eax, dword [0x409238]
mov eax, dword [eax]
push eax
push 0
push 0x185
mov eax, dword [ebp - 0x20]
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [ebp - 0x24]
add eax, 0x1e
movzx edx, word [0x40a672]
add eax, edx
add eax, dword [0x40a66a]
xor edx, edx
call fcn.00407f2c
call fcn.00407204
test al, al
jne 0x40736e
cmp byte [ebp - 9], 0
je 0x4078ef
cmp byte [ebp - 1], 0
jne 0x4078ef
push 0
push 0
push 0x190
mov eax, dword [ebp - 0x20]
push eax
call sub.user32.dll_SendMessageA
test eax, eax
jne 0x4078d6
mov eax, dword [0x409248]
cmp byte [eax], 0
jne 0x4078d0
mov eax, dword [0x40923c]
cmp byte [eax], 0
je 0x4078d0
push 0
push 0x407a4c
push 0x407a54
push 0
call sub.user32.dll_MessageBoxA_1
mov byte [ebp - 2], 1
jmp 0x40791e
push 0x10
push 0x407970
push 0x407a74
push 0
call sub.user32.dll_MessageBoxA_1
mov byte [ebp - 2], 0
jmp 0x40791e
cmp byte [ebp - 1], 0
je 0x40791e
push 0
push 0
push 0x18b
mov eax, dword [ebp - 0x20]
push eax
call sub.user32.dll_SendMessageA
test eax, eax
jne 0x40791e
push 0x10
push 0x407970
push 0x40797c
push 0
call sub.user32.dll_MessageBoxA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40793b
mov eax, dword [ebp - 8]
call fcn.0040246c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407965
lea eax, [ebp - 0x48]
call fcn.00402e30
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00402e54
ret