Function at 0x412c90
Capabilities:
Create directory
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x43d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x218]
mov esi, ecx
push edi
push eax
call fcn.0041a52d
add esp, 4
lea eax, [ebp - 0x218]
push eax
call fcn.0041afb2
add esp, 4
add dword [eax + 0x14], 0x76c
mov edi, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
inc edi
mov eax, dword [eax + 0xc]
push 0xff
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00417d10
add esp, 0xc
lea eax, [esi + 0x4b3c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x20c]
cmp eax, dword [esi + 0x4b78]
jne 0x412df2
cmp edi, dword [esi + 0x4b7c]
jne 0x412df2
cmp ebx, dword [esi + 0x4b80]
jne 0x412df2
xor ebx, ebx
lea eax, [esi + 0x4938]
push ebx
push ebx
push 3
push ebx
push 1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x412d59
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, dword [esi + 0x4b38]
jb 0x412f1e
push 0
push 0x4392ac
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esi + 0x4934]
test eax, eax
je 0x412d8f
push eax
call fcn.0041b114
add esp, 4
mov dword [esi + 0x4934], 0
mov edi, 1
lea ebx, [esi + 0x4a37]
nop word [eax + eax]
push 0xff
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00417d10
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push ebx
push str._s_part__d.log
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x108]
push 0x439360
push eax
call fcn.0041b086
add esp, 0x18
test eax, eax
je 0x412ed0
push eax
call fcn.0041b114
add esp, 4
inc edi
jmp 0x412da0
mov dword [esi + 0x4b78], eax
mov eax, dword [esi + 0x4934]
mov dword [esi + 0x4b7c], edi
mov dword [esi + 0x4b80], ebx
test eax, eax
je 0x412e21
push eax
call fcn.0041b114
add esp, 4
mov dword [esi + 0x4934], 0
push 0
push 0x4392ac
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x439284
push dword [esi + 0x4b80]
lea eax, [ebp - 0x108]
push dword [esi + 0x4b7c]
push dword [esi + 0x4b78]
push dword [esi + 0x4b74]
push dword [esi + 0x4b70]
push dword [esi + 0x4b6c]
push str.Log_02d._02d._04d____02d._02d._04d__s.log
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
lea eax, [ebp - 0x208]
push 0x439284
push dword [esi + 0x4b80]
push dword [esi + 0x4b7c]
push dword [esi + 0x4b78]
push str.Log_02d._02d._04d__s.log
push eax
call fcn.00413450
push 0xff
lea edi, [esi + 0x4a37]
push 0
push edi
call fcn.00417d10
lea ecx, [ebp - 0x208]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412eb3
sub ecx, edx
lea eax, [ecx - 4]
push eax
lea eax, [ebp - 0x208]
push eax
push edi
call fcn.00419900
add esp, 0xc
lea ecx, [ebp - 0x108]
lea edi, [esi + 0x4938]
mov eax, ecx
mov edx, edi
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x412ee2
cmp dword [esi + 0x4934], 0
jne 0x412f1e
push 0x4392d4
push edi
call fcn.0041b086
add esp, 8
mov dword [esi + 0x4934], eax
test eax, eax
jne 0x412f1e
push str.Log_File_create_error.
push esi
call fcn.00412fe0
add esp, 8
lea eax, [esi + 0x4b3c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004163e0
mov esp, ebp
pop ebp
ret