Function at 0x403ca0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x408
lea eax, [esp + 8]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push eax
mov dword [0x4152a8], ebp
mov dword [0x415370], ebp
mov dword [0x415374], ebp
mov dword [0x414e88], ebp
mov dword [0x414e8c], ebp
call fcn.00406da0
mov esi, dword [esp + 0x424]
mov ebx, dword [sym.imp.USER32.dll_SetDlgItemTextA]
add esp, 8
lea ecx, [esp + 0x18]
push ecx
push 0x418
push esi
call ebx
push ebp
lea edx, [esp + 0x1c]
push ebp
push edx
call fcn.00406e00
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x410
push esi
call ebx
lea ecx, [esp + 0x18]
push ecx
push 0x40f
push esi
call ebx
lea edx, [esp + 0x18]
push edx
push 0x40e
push esi
call ebx
xor eax, eax
xor ecx, ecx
mov dword [0x415160], eax
mov dword [0x4152b0], ecx
mov dword [0x415164], eax
mov dword [0x4152b4], ecx
lea edx, [esp + 0x18]
mov dword [0x415168], eax
mov dword [0x4152b8], ecx
push ebp
push edx
mov dword [0x4150e8], ebp
mov dword [0x41508c], ebp
mov dword [0x4150e4], ebp
mov dword [0x415290], ebp
mov dword [0x413e60], ebp
mov dword [0x4152c0], ebp
mov dword [0x41516c], eax
mov dword [0x4152bc], ecx
call fcn.00406f20
add esp, 8
lea eax, [esp + 0x18]
push eax
push 0x425
push esi
call ebx
lea ecx, [esp + 0x18]
push ecx
push 0x424
push esi
call ebx
lea edx, [esp + 0x18]
push edx
push 0x423
push esi
call ebx
lea eax, [esp + 0x18]
push eax
push 0x421
push esi
call ebx
lea ecx, [esp + 0x18]
push ecx
push 0x422
push esi
call ebx
lea edx, [esp + 0x18]
push edx
push 0x420
push esi
call ebx
lea eax, [esp + 0x18]
push eax
push 0x428
push esi
call ebx
lea ecx, [esp + 0x18]
push ecx
push 0x427
push esi
call ebx
cmp dword [0x415508], ebp
je 0x403e17
mov edx, dword [str.00000000]
mov eax, dword [0x40ff98]
mov cl, byte [0x40ff9c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], cl
lea edx, [esp + 0x18]
push edx
push 0x42f
push esi
call ebx
lea eax, [esp + 0x18]
push eax
push 0x430
push esi
call ebx
push ebp
push ebp
push 3
push ebp
push 3
push 0x80000000
push 0x415400
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x403e87
lea ecx, [esp + 0x14]
push ebp
push ecx
push 0x78
push 0x415520
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403e7a
cmp dword [esp + 0x14], 0x78
jne 0x403e7a
mov dword [esp + 0x10], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebp
jne 0x403ee5
mov ecx, 0x1e
xor eax, eax
mov edi, 0x415520
push 0x415538
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [0x415538]
mov ecx, dword [0x41553c]
mov edx, dword [0x415540]
mov edi, dword [0x415544]
mov dword [0x415560], eax
mov dword [0x415564], ecx
mov dword [0x415568], edx
mov dword [0x41556c], edi
mov dword [0x415588], eax
mov dword [0x41558c], ecx
mov dword [0x415590], edx
mov dword [0x415594], edi
mov edx, dword [0x415520]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00406da0
add esp, 8
lea ecx, [esp + 0x18]
push ecx
push 0x417
push esi
call ebx
mov edx, dword [0x41552c]
mov eax, dword [0x415528]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00406e00
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push 0x40d
push esi
call ebx
mov eax, dword [0x415534]
mov ecx, dword [0x415530]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00406e00
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x40c
push esi
call ebx
mov ecx, dword [0x415530]
mov eax, dword [0x415528]
mov edx, dword [0x415534]
mov ebp, dword [0x41552c]
add ecx, eax
lea eax, [esp + 0x18]
adc edx, ebp
push edx
push ecx
push eax
call fcn.00406e00
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0x3f5
push esi
call ebx
lea edx, [esp + 0x18]
push 0x415538
push edx
call fcn.00406d50
add esp, 8
lea eax, [esp + 0x18]
push eax
push 0x41d
push esi
call ebx
mov ecx, dword [0x415548]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00406da0
add esp, 8
lea eax, [esp + 0x18]
push eax
push 0x419
push esi
call ebx
mov ecx, dword [0x415554]
mov edx, dword [0x415550]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00406e00
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0x413
push esi
call ebx
mov edx, dword [0x41555c]
mov eax, dword [0x415558]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00406e00
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push 0x412
push esi
call ebx
mov eax, dword [0x415558]
mov ebp, dword [0x415550]
mov ecx, dword [0x41555c]
mov edi, dword [0x415554]
add eax, ebp
lea edx, [esp + 0x18]
adc ecx, edi
push ecx
push eax
push edx
call fcn.00406e00
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x411
push esi
call ebx
lea ecx, [esp + 0x18]
push 0x415560
push ecx
call fcn.00406d50
add esp, 8
lea edx, [esp + 0x18]
push edx
push 0x41f
push esi
call ebx
mov eax, dword [0x415570]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00406da0
add esp, 8
lea edx, [esp + 0x18]
push edx
push 0x42c
push esi
call ebx
mov eax, dword [0x41557c]
mov ecx, dword [0x415578]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00406e00
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x42b
push esi
call ebx
mov ecx, dword [0x415584]
mov edx, dword [0x415580]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00406e00
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0x42a
push esi
call ebx
mov edx, dword [0x415580]
mov eax, dword [0x415578]
mov ebp, dword [0x41557c]
add edx, eax
mov eax, dword [0x415584]
lea ecx, [esp + 0x18]
adc eax, ebp
push eax
push edx
push ecx
call fcn.00406e00
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push 0x429
push esi
call ebx
lea eax, [esp + 0x18]
push 0x415588
push eax
call fcn.00406d50
add esp, 8
lea ecx, [esp + 0x18]
push ecx
push 0x42d
push esi
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x408
ret