Function at 0x408d00
Capabilities:
Check if file exists
Create directory
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cee8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
mov eax, dword [0x50db60]
push ebx
mov dword [esp + 8], ecx
mov ecx, dword [ecx + 0x38]
test ecx, ecx
push esi
mov dword [esp + 0x230], eax
push edi
je 0x408e79
push 0
lea eax, [esp + 0x24]
push 0x104
push eax
call fcn.00409910
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408d78
push 0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
je 0x408e79
mov ebx, dword [ebp + 8]
xor edi, edi
push edi
push ebx
lea eax, [esp + 0x28]
push eax
push str._s_PerformanceLog__s__05d.log
lea ecx, [esp + 0x138]
push 0x104
push ecx
call fcn.004be7bb
add esp, 0x18
push edi
push 0x80
push 3
push edi
push 1
push 0x40000000
lea edx, [esp + 0x140]
push edx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x408e3d
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0
call dword [sym.imp.kernel32.dll_GetFileSize]
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x408df4
cmp dword [esp + 0x14], 0x3200000
jb 0x408e3d
inc edi
push edi
push ebx
lea ecx, [esp + 0x28]
push ecx
push str._s_PerformanceLog__s__05d.log
lea edx, [esp + 0x138]
push 0x104
push edx
call fcn.004be7bb
add esp, 0x18
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
lea eax, [esp + 0x140]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408dc3
mov ebx, dword [esp + 0x10]
push ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
lea ecx, [esp + 0x128]
push 0x4d5534
push ecx
mov dword [esp + 0x24c], 0
call fcn.004bebed
mov esi, eax
add esp, 8
test esi, esi
jne 0x408e80
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
xor al, al
jmp 0x408fb8
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x408e8d
push esi
call eax
add esp, 4
push 0x4d5480
push esi
call fcn.004bf2c5
fld qword [0x4d5418]
mov edi, dword [ebx + 0x34]
fstp qword [esp + 0x20]
mov ecx, dword [edi]
add esp, 8
cmp ecx, edi
mov dword [esp + 0xc], ecx
je 0x408f33
mov edx, dword [ecx + 0x38]
test edx, edx
je 0x408f22
fld qword [ecx + 0x18]
fld qword [0x4d5418]
fucompp
fnstsw ax
test ah, 0x44
jp 0x408ed7
fld qword [0x4d5418]
jmp 0x408eea
mov eax, dword [ecx + 0x34]
fild dword [ecx + 0x34]
test eax, eax
jge 0x408ee7
fadd qword [0x4d5478]
fdivr qword [ecx + 0x18]
fld qword [esp + 0x18]
push edx
mov edx, dword [ecx + 0x34]
fadd st(1)
push edx
sub esp, 0x20
fstp qword [esp + 0x40]
fld qword [ecx + 0x18]
fstp qword [esp + 0x18]
fld qword [ecx + 0x28]
fstp qword [esp + 0x10]
fld qword [ecx + 0x20]
fstp qword [esp + 8]
fstp qword [esp]
push str.____3.6f______3.6f______3.6f_______8.1f_____10d_____s_n
push esi
call fcn.004bf2c5
add esp, 0x30
lea ecx, [esp + 0xc]
call fcn.00408aa0
mov ecx, dword [esp + 0xc]
cmp ecx, edi
jne 0x408eb6
fld qword [esp + 0x18]
sub esp, 8
fstp qword [esp]
push str._n_n_Total_AvgTime_:__3.6f_n_n_n
push esi
call fcn.004bf2c5
mov eax, dword [ebx + 0x40]
xor edi, edi
add esp, 0x10
cmp eax, edi
je 0x408f5a
push esi
call eax
add esp, 4
push esi
call fcn.004bec7b
mov al, byte [ebp + 0xc]
add esp, 4
test al, al
je 0x408faf
mov esi, dword [ebx + 0x34]
mov eax, dword [esi]
cmp eax, esi
mov dword [esp + 0xc], eax
je 0x408faf
jmp 0x408f80
fld qword [0x4d5418]
lea ecx, [esp + 0xc]
fstp qword [eax + 0x28]
mov dword [eax + 0x34], edi
fld qword [0x4d5418]
fstp qword [eax + 0x20]
fld qword [0x4d5418]
fstp qword [eax + 0x18]
call fcn.00408aa0
mov eax, dword [esp + 0xc]
cmp eax, esi
jne 0x408f80
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x234]
call fcn.004bff5b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8