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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc8c
mov eax, dword [0x42b004]
xor eax, esp
mov dword [esp + 0xc88], eax
push ebx
push esi
push edi
push 0x208
lea eax, [esp + 0x504]
mov ebx, ecx
push 0
push eax
mov dword [esp + 0x28], ebx
call fcn.0040da60
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
lea eax, [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x10], 0
push eax
push 0
push 0x1001
push 0x3f9
push dword [ebx + 4]
call esi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call edi
lea eax, [esp + 0x78]
push eax
push 0
push 0x1001
push 0x3fb
push dword [ebx + 4]
call esi
push eax
call edi
push 0x3f0
push dword [ebx + 4]
call esi
push 0
push 0
push 0x1009
push eax
call edi
cmp word [0x431be0], 0
je 0x407f57
lea ecx, [esp + 0x500]
mov esi, 0x431be0
mov eax, ecx
mov edx, 0x104
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x407b7e
movzx eax, word [esi + ecx]
test ax, ax
je 0x407b7e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x407b60
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov ecx, 0x104
lea eax, [esp + 0x500]
cmp word [eax], 0
je 0x407ba5
add eax, 2
sub ecx, 1
jne 0x407b97
mov edx, 0x104
mov esi, ecx
mov eax, edx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x407bfa
lea ecx, [esp + 0x500]
lea ecx, [ecx + esi*2]
sub edx, esi
je 0x407bed
mov edi, str.Req.bin
mov eax, 0x7ffffffe
sub edi, ecx
test eax, eax
je 0x407bed
movzx esi, word [edi + ecx]
test si, si
je 0x407bed
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x407bd4
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [esp + 0x518]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0xc], ebx
cmp ebx, 0xffffffff
je 0x407f57
lea eax, [esp + 0x20]
xorps xmm0, xmm0
push eax
push ebx
movlpd qword [esp + 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x407f50
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
push 0
push 0x3f8
push edi
push esi
call fcn.004214e0
mov ecx, eax
mov dword [esp + 0x18], ecx
cmp ecx, 0x80
jbe 0x407c71
mov dword [esp + 0x18], 0x80
jmp 0x407c7a
cmp ecx, 1
jb 0x407f50
mov eax, 1
mov dword [esp + 0x14], eax
imul eax, eax, 0x3f8
push 0
sub esi, eax
lea eax, [esp + 0x64]
push eax
sbb edi, 0
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x407f34
push 0
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 0
push eax
push 0x3f8
lea eax, [esp + 0x94]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407f34
cmp dword [esp + 0x88], 0x32524644
jne 0x407f34
push 0x588
lea eax, [esp + 0x70c]
push 0
push eax
call fcn.0040da60
add esp, 0xc
lea eax, [esp + 0x708]
push 0x2c4
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x1c8]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [esp + 0x1c]
mov bl, 1
mov ecx, dword [esp + 0x90]
mov edx, dword [edi + 8]
test bl, dl
jne 0x407d3c
xor eax, eax
movzx ebx, bl
cmp ecx, 6
cmove ebx, eax
test dl, 2
jne 0x407d4c
xor esi, esi
movzx ebx, bl
cmp ecx, 1
cmove ebx, esi
test dl, 4
jne 0x407d5c
xor esi, esi
movzx ebx, bl
cmp ecx, 5
cmove ebx, esi
mov eax, dword [esp + 0x94]
xor ecx, ecx
test al, 2
je 0x407d6f
test al, 0x10
setne cl
inc ecx
test edx, 0x10000
jne 0x407d82
xor esi, esi
movzx ebx, bl
cmp ecx, 1
cmove ebx, esi
test edx, 0x20000
jne 0x407d95
xor esi, esi
movzx ebx, bl
cmp ecx, 2
cmove ebx, esi
test edx, 0x40000
jne 0x407da7
xor esi, esi
movzx ebx, bl
test ecx, ecx
cmove ebx, esi
test edx, 0x1000000
je 0x407de2
cmp word [edi + 0xc], 0
lea esi, [edi + 0xc]
je 0x407de2
lea eax, [esp + 0x708]
push 0x5c
push eax
call fcn.0040d6be
add esp, 8
test eax, eax
je 0x407de2
add eax, 2
push esi
push eax
call fcn.0040d45c
add esp, 8
neg eax
sbb al, al
and bl, al
mov eax, dword [edi + 8]
test eax, 0x2000000
je 0x407ea7
test eax, 0x4000000
jne 0x407e42
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x6c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
mov ax, word [esp + 0x2c]
cmp ax, word [esp + 0x50]
jne 0x407e40
mov ax, word [esp + 0x2e]
cmp ax, word [esp + 0x52]
jne 0x407e40
mov ax, word [esp + 0x32]
cmp ax, word [esp + 0x56]
je 0x407e42
xor bl, bl
test dword [edi + 8], 0x4000000
je 0x407ea7
mov esi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x30]
push eax
call esi
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x7c]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CompareFileTime]
lea eax, [esp + 0x190]
push eax
lea eax, [esp + 0x44]
push eax
call esi
test eax, eax
jg 0x407f30
lea eax, [esp + 0x190]
push eax
lea eax, [esp + 0x4c]
push eax
call esi
test eax, eax
js 0x407f30
cmp bl, 1
jne 0x407f30
push 0x80
lea eax, [esp + 0x484]
push 0
push eax
call fcn.0040da60
add esp, 0xc
lea eax, [esp + 0x480]
push 0x40
push eax
push 0xffffffffffffffff
lea eax, [esp + 0xf0]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x188]
push ecx
push eax
lea eax, [esp + 0x10c]
mov ecx, edi
push eax
lea eax, [esp + 0x48c]
push eax
push dword [esp + 0xa4]
lea eax, [esp + 0x71c]
push eax
lea eax, [esp + 0x1a8]
push eax
push dword [esp + 0xac]
push ebx
call fcn.00406e90
inc ebx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x18]
ja 0x407f50
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
jmp 0x407c83
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c080
mov esp, ebp
pop ebp
ret