Function at 0x40c520
Capabilities:
Create directory
Get file size

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58844e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x40
mov eax, dword [0x5f3fcc]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov ecx, dword [edi + 0x48]
mov dword [ebp - 0x54], edi
test ecx, ecx
je 0x40c57b
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x48], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x38]
movups xmmword [ebp - 0x38], xmm0
call fcn.004213f0
lea ecx, [edi + 0x34]
mov dword [ebp - 4], 0
call fcn.00421910
push eax
lea ecx, [edi + 0x24]
call fcn.00421910
push eax
lea eax, [ebp - 0x38]
push str._s_s.log
push eax
call fcn.00421840
mov al, byte [edi + 0x45]
add esp, 0x10
mov byte [ebp - 0x4d], al
test al, al
je 0x40c6ff
xorps xmm0, xmm0
lea ecx, [edi + 0x24]
movups xmmword [ebp - 0x48], xmm0
call fcn.00421910
lea ecx, [ebp - 0x48]
mov esi, eax
call fcn.004213f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x48]
push esi
call dword [eax + 4]
push 0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00421910
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00421460
push 0x18
mov byte [edi + 0x45], 0
call fcn.00422160
add esp, 4
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x40c667
xorps xmm0, xmm0
lea ecx, [ebp - 0x38]
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
call fcn.00421910
mov esi, eax
mov eax, dword [ebp - 0x4c]
lea ecx, [eax + 8]
mov dword [eax], vtable.WinFile.0
mov dword [eax + 4], 0xffffffff
call fcn.004213f0
push ecx
push 0
push 2
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x4c]
push esi
call fcn.0040a8a0
mov eax, dword [ebp - 0x4c]
jmp 0x40c669
xor eax, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
push ecx
mov dword [edi + 0x48], eax
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [ebp - 0x24], 0
jl 0x40c760
jg 0x40c696
cmp dword [ebp - 0x28], 0x100000
jbe 0x40c760
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x40c6a3
mov eax, dword [ecx]
push 1
call dword [eax]
push 0x18
call fcn.00422160
add esp, 4
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x40c757
xorps xmm0, xmm0
lea ecx, [ebp - 0x38]
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
call fcn.00421910
mov esi, eax
mov eax, dword [ebp - 0x4c]
lea ecx, [eax + 8]
mov dword [eax], vtable.WinFile.0
mov dword [eax + 4], 0xffffffff
call fcn.004213f0
push ecx
push 1
push 2
mov byte [ebp - 4], 6
push esi
mov esi, dword [ebp - 0x4c]
mov ecx, esi
call fcn.0040a8a0
jmp 0x40c759
push 0x18
call fcn.00422160
add esp, 4
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x40c757
xorps xmm0, xmm0
lea ecx, [ebp - 0x38]
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
call fcn.00421910
mov esi, eax
mov eax, dword [ebp - 0x4c]
lea ecx, [eax + 8]
mov dword [eax], vtable.WinFile.0
mov dword [eax + 4], 0xffffffff
call fcn.004213f0
push ecx
push 0
push 2
mov byte [ebp - 4], 8
push esi
mov esi, dword [ebp - 0x4c]
mov ecx, esi
call fcn.0040a8a0
jmp 0x40c759
xor esi, esi
mov byte [ebp - 4], 0
mov dword [edi + 0x48], esi
call fcn.00422150
test al, al
je 0x40c88e
cmp byte [ebp - 0x4d], 0
je 0x40c88e
mov ecx, edi
mov byte [ebp - 4], 9
call fcn.0040c8e0
mov eax, dword [edi + 0x4c]
lea ecx, [edi + 0x4c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], vtable.AutoLock.0
mov dword [ebp - 0x24], ecx
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov eax, 0x66666667
mov ecx, dword [edi + 0x1c]
sub ecx, dword [edi + 0x18]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40c810
xor esi, esi
nop dword [eax]
mov ecx, dword [edi + 0x1c]
mov eax, 0x66666667
sub ecx, dword [edi + 0x18]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x40c86c
mov edx, dword [edi + 0x18]
lea eax, [esi + esi*4]
lea ecx, [edx + eax*8]
mov dword [ebp - 0x4c], ecx
lea ecx, [edx + 0x14]
lea ecx, [ecx + eax*8]
call fcn.00421910
mov ecx, dword [ebp - 0x4c]
mov edx, dword [edi]
push eax
push dword [ecx + 0x10]
lea eax, [ecx + 8]
push eax
push dword [ecx + 4]
push dword [ecx]
mov ecx, edi
call dword [edx + 4]
inc esi
jmp 0x40c7c0
cmp byte [edi + 4], 0
je 0x40c86c
xor esi, esi
nop dword [eax + eax]
mov ecx, dword [edi + 0xc]
mov eax, 0x66666667
sub ecx, dword [edi + 8]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x40c86c
mov edx, dword [edi + 8]
lea eax, [esi + esi*4]
lea ecx, [edx + eax*8]
mov dword [ebp - 0x4c], ecx
lea ecx, [edx + 0x14]
lea ecx, [ecx + eax*8]
call fcn.00421910
mov ecx, dword [ebp - 0x4c]
mov edx, dword [edi]
push eax
push dword [ecx + 0x10]
lea eax, [ecx + 8]
push eax
push dword [ecx + 4]
push dword [ecx]
mov ecx, edi
call dword [edx + 4]
inc esi
jmp 0x40c820
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x40c88e
lea ecx, [ebp - 0x38]
call fcn.00421460
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00567879
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret