Function at 0x403490
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4129a8
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x87f03c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
push 1
push 1
push 0
mov dword [ebp - 0x9c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edi, eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x88], edi
test edi, edi
jne 0x4034f2
xor al, al
jmp 0x403bc5
xorps xmm0, xmm0
mov dword [ebp - 0x18], 2
movups xmmword [ebp - 0x28], xmm0
mov eax, 0x5c5c
mov dword [ebp - 0x14], 0xf
mov word [ebp - 0x28], ax
mov byte [ebp - 0x26], 0
push 2
push 0x414608
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00403340
push 1
push 0x41460c
lea ecx, [ebp - 0x28]
call fcn.00403340
push 1
push 0x4145f8
lea ecx, [ebp - 0x28]
call fcn.00403340
push 1
push 0x41460c
lea ecx, [ebp - 0x28]
call fcn.00403340
push 1
push 0x4145f0
lea ecx, [ebp - 0x28]
call fcn.00403340
push 1
push 0x414610
lea ecx, [ebp - 0x28]
call fcn.00403340
push 1
push 0x414614
lea ecx, [ebp - 0x28]
call fcn.00403340
push 1
push 0x4145f8
lea ecx, [ebp - 0x28]
call fcn.00403340
push 1
push 0x4145f0
lea ecx, [ebp - 0x28]
call fcn.00403340
push 1
push 0x414618
lea ecx, [ebp - 0x28]
call fcn.00403340
push 1
push 0x41461c
lea ecx, [ebp - 0x28]
call fcn.00403340
push 1
push 0x4145f0
lea ecx, [ebp - 0x28]
call fcn.00403340
push 1
push 0x4145f4
lea ecx, [ebp - 0x28]
call fcn.00403340
push 1
push 0x414620
lea ecx, [ebp - 0x28]
call fcn.00403340
push 1
push 0x41461c
lea ecx, [ebp - 0x28]
call fcn.00403340
push 1
push 0x414624
lea ecx, [ebp - 0x28]
call fcn.00403340
push 1
push 0x414628
lea ecx, [ebp - 0x28]
call fcn.00403340
push 1
push 0x414628
lea ecx, [ebp - 0x28]
call fcn.00403340
push 1
push 0x414600
lea ecx, [ebp - 0x28]
call fcn.00403340
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [ebp - 0x48], xmm0
mov dword [ebp - 0x74], 0
nop
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
push 0
cmovae eax, dword [ebp - 0x58]
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0xa0], esi
mov byte [ebp - 4], 3
cmp esi, 0xffffffff
je 0x403881
xorps xmm0, xmm0
mov dword [ebp - 0x30], 1
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0xf
mov word [ebp - 0x40], 0x76
push 1
push 0x4145f0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00403340
push 1
push 0x4145f4
lea ecx, [ebp - 0x40]
call fcn.00403340
push 1
push 0x4145f8
lea ecx, [ebp - 0x40]
call fcn.00403340
push 1
push 0x4145fc
lea ecx, [ebp - 0x40]
call fcn.00403340
push 1
push 0x414600
lea ecx, [ebp - 0x40]
call fcn.00403340
push 1
push str._erifyKp_sdl_ob
lea ecx, [ebp - 0x40]
call fcn.00403340
mov ecx, dword [ebp - 0x9c]
mov eax, ecx
cmp dword [ecx + 0x14], 0x10
jb 0x403712
mov eax, dword [ecx]
push dword [ecx + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.00403340
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x98]
push ecx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x90], 0
push ecx
push dword [ebp - 0x30]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x8c], 0
cmovae eax, dword [ebp - 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4037af
movd xmm1, dword [ebp - 0x74]
movsd xmm0, qword [0x414988]
cvtdq2pd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
mulsd xmm0, qword [0x414990]
call fcn.0040e8d0
push eax
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x403837
push 0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x98]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [ebp - 0x80]
cmp eax, dword [ebp - 0x30]
jne 0x403b16
xor eax, eax
mov word [ebp - 0x70], ax
mov byte [ebp - 0x6e], al
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x84]
push eax
push 3
lea eax, [ebp - 0x70]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x403a77
movd xmm1, dword [ebp - 0x74]
movsd xmm0, qword [0x414988]
cvtdq2pd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
mulsd xmm0, qword [0x414990]
call fcn.0040e8d0
push eax
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x403a59
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x40386f
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403865
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b9d
push ecx
push edx
call fcn.0040e25c
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov eax, dword [ebp - 0x74]
inc eax
mov dword [ebp - 0x74], eax
cmp eax, 5
jg 0x403b5e
cmp esi, 0xffffffff
je 0x40389d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xa8]
push eax
call fcn.00403c70
mov ecx, dword [ebp - 0xa8]
add esp, 4
mov eax, dword [ebp - 0xa4]
cmp ecx, 0xf4143dff
jne 0x4038c7
cmp eax, 0x7fffffff
je 0x4038e8
cmp eax, 0x7fffffff
jg 0x4038e8
jl 0x4038d8
cmp ecx, 0xf4143dff
jae 0x4038e8
add ecx, 0xbebc200
mov esi, ecx
adc eax, 0
mov dword [ebp - 0x60], eax
jmp 0x4038f2
or esi, 0xffffffff
mov dword [ebp - 0x60], 0x7fffffff
mov edi, dword [ebp - 0x60]
call sub.MSVCP140.dll__Query_perf_frequency
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x60], edx
call sub.MSVCP140.dll__Query_perf_counter
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x60]
cmp ecx, 0x989680
jne 0x403938
test eax, eax
jne 0x403938
mov eax, edx
mov ecx, 0x64
mul ecx
mov edx, 0x64
mov ecx, eax
mov eax, dword [ebp - 0x64]
mul edx
add ecx, edx
mov edx, eax
mov dword [ebp - 0x68], ecx
jmp 0x403995
push ebx
push eax
push ecx
push edx
push dword [ebp - 0x64]
call fcn.0040e7b0
mov dword [ebp - 0x6c], ebx
pop ebx
nop
push 0
push 0x3b9aca00
push dword [ebp - 0x6c]
mov dword [ebp - 0x78], eax
push ecx
mov dword [ebp - 0x64], edx
call fcn.0040e890
push dword [ebp - 0x60]
push dword [ebp - 0x68]
push edx
push eax
call fcn.0040e700
mov dword [ebp - 0x60], eax
mov ecx, 0x3b9aca00
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], edx
mul ecx
mov edx, 0x3b9aca00
mov ecx, eax
mov eax, dword [ebp - 0x78]
mul edx
add ecx, edx
mov edx, dword [ebp - 0x60]
add edx, eax
adc dword [ebp - 0x68], ecx
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x60], edx
cmp esi, edx
jne 0x4039a4
cmp edi, ecx
je 0x403a3c
cmp edi, ecx
jl 0x403a3c
jg 0x4039b6
cmp esi, edx
jb 0x403a3c
call sub.MSVCP140.dll__Xtime_get_ticks
push 0
push 0x64
push edx
push eax
call fcn.0040e890
mov dword [ebp - 0x64], eax
mov ecx, esi
sub ecx, dword [ebp - 0x60]
mov eax, edi
mov dword [ebp - 0x6c], edx
sbb eax, dword [ebp - 0x68]
mov edx, eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x60], eax
call fcn.0040e9e0
comisd xmm0, xmmword [0x414998]
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x6c]
jbe 0x403a00
add eax, 0xad160000
adc ecx, 0x311cd
jmp 0x403a06
add eax, dword [ebp - 0x78]
adc ecx, dword [ebp - 0x60]
push 0
push 0x3b9aca00
push ecx
push eax
mov dword [ebp - 0x64], eax
call fcn.0040e700
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x20], eax
imul eax, eax, 0x3b9aca00
mov dword [ebp - 0x1c], edx
sub ecx, eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x18], ecx
call sub.MSVCP140.dll__Thrd_sleep
add esp, 4
jmp 0x4038f5
mov esi, dword [ebp - 0xa0]
mov edi, dword [ebp - 0x7c]
test esi, esi
je 0x403650
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403650
test eax, eax
jne 0x403b16
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x98]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 1
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov word [ebp - 0x28], 0x4f
push 1
push 0x414604
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.00403340
lea ecx, [ebp - 0x70]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403ab0
sub ecx, edx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x70]
push ecx
push dword [ebp - 0x18]
push eax
call fcn.00401570
mov byte [ebp - 0x59], al
add esp, 0x10
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x403b1a
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x28]
mov edx, eax
cmp ecx, 0x1000
jb 0x403b0a
mov eax, dword [edx - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x7c], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x403b9d
mov eax, dword [ebp - 0x7c]
push ecx
push eax
call fcn.0040e25c
add esp, 8
jmp 0x403b1a
mov byte [ebp - 0x59], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x403b4a
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403b40
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b9d
push ecx
push edx
call fcn.0040e25c
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
jmp 0x403b62
mov byte [ebp - 0x59], 0
test esi, esi
je 0x403b71
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x403b77
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x403bad
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403ba3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403ba3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e25c
add esp, 8
push edi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call esi
mov al, byte [ebp - 0x59]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e6c4
mov esp, ebp
pop ebp
ret 4