Function at 0x40a060
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x453c9c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [0x467900]
mov dword [esp + 0x110], eax
mov al, byte [0x468fd0]
push ebx
push esi
test al, 1
mov eax, dword [0x468d88]
push edi
jne 0x40a0b1
or dword [0x468fd0], 1
mov ecx, dword [eax + 0xdc]
mov dword [0x468fcc], ecx
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 1
mov dword [eax + 0x14], ecx
mov edx, dword [0x468d88]
mov dword [edx + 0x10], ecx
mov eax, dword [0x468d88]
mov dword [eax + 0x30], esi
mov eax, dword [0x468fc8]
xor ebx, ebx
cmp eax, ebx
jne 0x40a0eb
push 0x819
push esi
call edi
mov dword [0x468fc8], eax
cmp dword [0x468fc4], ebx
jne 0x40a100
push 0x81a
push esi
call edi
mov dword [0x468fc4], eax
mov eax, dword [ebp + 0xc]
cmp eax, 0x110
ja 0x40a266
je 0x40a230
sub eax, 2
je 0x40a1cb
sub eax, 0x4c
jne 0x40a575
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 8]
cmp eax, 0xfffffda2
je 0x40a17f
cmp eax, 0xfffffda5
je 0x40a145
cmp eax, 0xfffffda6
jne 0x40a575
push 0x468ec0
push 0x104
push 0x465
push esi
mov byte [0x468ec0], 0
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0x819
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x40a575
mov edx, dword [0x468d88]
push 0x468ec0
push 0x104
push 0x465
push esi
mov dword [edx + 0x14], ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x468d88]
push ebx
push 0x466294
push 0x466108
push ebx
push eax
call fcn.004400d3
add esp, 0x14
mov ecx, eax
call fcn.00409aa0
jmp 0x40a575
mov eax, dword [0x468fcc]
cmp eax, 5
mov ecx, dword [0x468d88]
mov dword [ecx + 0x10], ebx
jne 0x40a1f5
mov ecx, dword [0x468ebc]
cmp ecx, ebx
je 0x40a575
mov edx, dword [ecx]
push 1
call dword [edx + 8]
jmp 0x40a212
cmp eax, 4
jne 0x40a575
mov ecx, dword [0x468eb8]
cmp ecx, ebx
je 0x40a575
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
mov eax, dword [0x468eb4]
cmp eax, ebx
je 0x40a575
push eax
call fcn.0043fbb5
mov dword [0x468eb4], ebx
jmp 0x40a572
mov ecx, dword [ebp + 0x14]
push ecx
push 8
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push ebx
push 0x81a
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
push 0
push 0x819
push esi
call edi
push eax
call ebx
mov eax, 1
jmp 0x40a577
cmp eax, 0x111
je 0x40a2a3
cmp eax, 0x3b9
jne 0x40a575
mov edx, dword [0x468d88]
push ebx
mov dword [edx + 4], 1
mov eax, dword [0x468d88]
mov ecx, dword [eax + 0x30]
push 0x81a
push 0x111
push ecx
call fcn.0040a060
jmp 0x40a575
movzx eax, word [ebp + 0x10]
sub eax, 0x819
je 0x40a33f
dec eax
jne 0x40a575
push ebx
push 0x81a
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
push 1
push 0x819
push esi
call edi
push eax
call ebx
mov eax, dword [0x468fcc]
mov edx, dword [0x468d88]
xor esi, esi
cmp eax, 5
mov dword [edx + 0x10], esi
jne 0x40a304
mov ecx, dword [0x468ebc]
cmp ecx, esi
je 0x40a575
mov eax, dword [ecx]
push 1
call dword [eax + 8]
jmp 0x40a321
cmp eax, 4
jne 0x40a575
mov ecx, dword [0x468eb8]
cmp ecx, esi
je 0x40a575
mov edx, dword [ecx]
push esi
call dword [edx + 8]
mov eax, dword [0x468eb4]
cmp eax, esi
je 0x40a575
push eax
call fcn.0043fbb5
mov dword [0x468eb4], esi
jmp 0x40a572
push 1
push 0x81a
push esi
mov dword [esp + 0x1c], ebx
call edi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
push 0
push 0x819
push esi
call edi
push eax
call ebx
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push 0x468ec0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esp + 0x10], eax
call fcn.0043f0db
add esp, 4
test eax, eax
mov dword [0x468eb4], eax
je 0x40a52d
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor edi, edi
xor eax, eax
lea ecx, [ecx]
mov cl, byte [eax + 0x468ec0]
mov byte [eax + 0x468db0], cl
inc eax
test cl, cl
jne 0x40a3c0
mov eax, dword [0x468eb4]
mov ecx, dword [0x468d88]
push eax
call fcn.004019f0
cmp eax, 4
mov dword [0x468fcc], eax
jne 0x40a453
mov ecx, dword [0x468eb8]
cmp ecx, edi
je 0x40a402
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [0x468eb8], edi
push 0x234
call fcn.0043f0b7
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, edi
mov dword [esp + 0x12c], edi
je 0x40a434
mov ecx, dword [esp + 0xc]
mov edx, dword [0x468eb4]
push esi
push ecx
push edx
mov ecx, eax
call fcn.00408cb0
jmp 0x40a436
xor eax, eax
push edi
mov ecx, eax
mov dword [esp + 0x130], 0xffffffff
mov dword [0x468eb8], eax
call fcn.00408bd0
jmp 0x40a575
cmp eax, 5
jne 0x40a4c3
mov ecx, dword [0x468ebc]
cmp ecx, edi
je 0x40a46e
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x468ebc], edi
push 0xb8
call fcn.0043f0b7
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, edi
mov dword [esp + 0x12c], 1
je 0x40a4a4
mov ecx, dword [esp + 0xc]
mov edx, dword [0x468eb4]
push esi
push ecx
push edx
mov ecx, eax
call fcn.00407140
jmp 0x40a4a6
xor eax, eax
push edi
mov ecx, eax
mov dword [esp + 0x130], 0xffffffff
mov dword [0x468ebc], eax
call fcn.00404d80
jmp 0x40a575
mov eax, dword [0x468eb4]
push eax
call fcn.0043fbb5
mov dword [0x468eb4], edi
mov byte [esp + 0x1c], 0
xor eax, eax
add esp, 4
mov ecx, 0x1f
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
push 0x80
lea ecx, [esp + 0x1c]
push ecx
stosw word es:[edi], ax
push 0x81
push 0
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
push 0x454849
lea edx, [esp + 0x20]
push edx
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x468fc4]
push 0
push eax
call ebx
mov ecx, dword [0x468fc8]
push 1
push ecx
call ebx
jmp 0x40a575
mov byte [esp + 0x18], 0
xor eax, eax
mov ecx, 0x3f
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
push pe_nt_image_headers32
lea edx, [esp + 0x1c]
push edx
stosw word es:[edi], ax
push 0x7e
push 0
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
push 0
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x468eb4]
push ecx
call fcn.0043fbb5
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x11c]
call fcn.0043f599
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10