Function at 0x4170b0
Capabilities:
Create directory
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59dd70
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x61de38]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ebx, [edi + 0xa8]
mov dword [ebp - 4], 0
mov ecx, ebx
mov dword [ebp - 0x14], ebx
call fcn.00414ff0
cmp dword [edi + 0x84], 0
mov dword [ebp - 0x1c], ebx
jne 0x417107
mov edi, 1
jmp 0x4172b8
mov ebx, 0x6279a8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x24], 0
xor esi, esi
mov eax, ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 3
mov edx, dword [edi]
test edx, edx
je 0x41715a
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x10], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417143
sub ecx, dword [ebp - 0x10]
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.00411530
mov eax, dword [ebp - 0x30]
mov ecx, eax
call fcn.00412c30
test eax, eax
jne 0x417177
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x417285
lea eax, [edi + 0xec]
nop dword [eax]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x3c]
push dword [edi + 0x18]
test esi, esi
je 0x4171a3
push esi
push dword [edi + 0xc]
push dword [edi]
push str._s_s__d._s
push eax
call fcn.004115b0
add esp, 0x18
jmp 0x4171b6
push dword [edi + 0xc]
push dword [edi]
push str._s_s._s
push eax
call fcn.004115b0
add esp, 0x14
mov ebx, dword [ebp - 0x3c]
lea ecx, [edi + 0xe0]
push ebx
call fcn.004041b0
push 0
test eax, eax
je 0x4171d3
push dword [edi + 0xec]
jmp 0x4171e9
push ebx
lea ecx, [ebp - 0x24]
call fcn.004128e0
test eax, eax
je 0x417285
push 0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [edi + 0xa4]
jb 0x417208
lea ecx, [ebp - 0x24]
call fcn.004128c0
mov eax, dword [ebp - 0x10]
inc esi
jmp 0x417180
push ebx
lea ecx, [edi + 0xe0]
call fcn.004041b0
test eax, eax
jne 0x4172f5
lea eax, [ebp - 0x3c]
push eax
lea ecx, [edi + 0xe0]
call fcn.00411470
lea ecx, [ebp - 0x24]
call fcn.004128c0
mov eax, dword [edi + 0xec]
test eax, eax
je 0x41724e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xec], 0
push 0
push 0
push 4
push 0
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0xec], eax
cmp eax, 0xffffffff
jne 0x4172d7
mov dword [edi + 0xec], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xf0], eax
xor edi, edi
cmp dword [ebp - 0x2c], 0
je 0x417298
push dword [ebp - 0x30]
call fcn.0041a8f9
add esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4172a6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x38], 0
je 0x4172b5
push ebx
call fcn.0041a8f9
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4172c3
mov ecx, ebx
call fcn.00415060
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4172f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xf0], eax
mov eax, dword [edi + 0x84]
push eax
mov dword [ebp - 0x18], eax
call fcn.0041a8fe
add esp, 4
mov esi, eax
lea eax, [edi + 0x24]
mov edi, dword [ebp - 0x18]
mov ecx, eax
mov dword [ebp - 0x1c], eax
push edi
push esi
call fcn.00417ff0
test eax, eax
jne 0x417323
xor edi, edi
jmp 0x41733f
mov ecx, dword [ebp - 0x10]
push edi
push esi
call fcn.00412980
test eax, eax
je 0x41733a
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.00418050
mov edi, 1
test esi, esi
je 0x417287
push esi
call fcn.0041a8f9
add esp, 4
jmp 0x417287