Function at 0x415510
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4554ed
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x48f008]
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 ebx, ecx
mov dword [ebp - 0x38], ebx
xor esi, esi
test ebx, ebx
jne 0x41554e
lea esi, [ecx + 0x57]
jmp 0x41578f
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
push ebx
mov byte [ebp - 0x31], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x415576
cmp edi, 0xffffffff
jne 0x4155a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x41558b
sub eax, 1
je 0x41558b
sub eax, 0x78
jne 0x415592
xor al, al
mov byte [ebp - 0x31], al
jmp 0x415595
mov al, byte [ebp - 0x31]
test edi, edi
je 0x4155a8
mov byte [ebp - 0x31], al
cmp edi, 0xffffffff
je 0x4155a8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x31], 0
jne 0x41578f
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41578f
mov ecx, ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4155d4
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x30]
call fcn.0040b340
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x20]
test esi, esi
jne 0x41563b
mov esi, 0x7a
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x41578f
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415634
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4157ad
push edx
push ecx
jmp 0x415787
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
mov edi, dword [ebp - 0x30]
cmp ebx, 8
mov edx, 0x5c
cmovae eax, edi
lea ecx, [edx - 0x2d]
cmp dx, word [eax + esi*2 - 2]
je 0x415669
cmp ebx, 8
lea eax, [ebp - 0x30]
cmovae eax, edi
cmp cx, word [eax + esi*2 - 2]
jne 0x4156ab
cmp ebx, 8
lea eax, [ebp - 0x30]
cmovae eax, edi
cmp dx, word [eax + esi*2 - 2]
je 0x41568d
cmp ebx, 8
lea eax, [ebp - 0x30]
cmovae eax, edi
cmp cx, word [eax + esi*2 - 2]
jne 0x41575a
cmp ebx, 8
lea eax, [ebp - 0x30]
lea ecx, [esi - 1]
cmovae eax, edi
mov dword [ebp - 0x20], ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x30]
test esi, esi
je 0x41575a
xor eax, eax
mov dword [ebp - 0x18], 0x2f005c
lea edx, [ebp - 0x18]
mov word [ebp - 0x14], ax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4156c6
push dword [ebp - 0x38]
sub edx, ecx
lea eax, [ebp - 0x18]
sar edx, 1
lea ecx, [ebp - 0x30]
push edx
cmp ebx, 8
mov edx, esi
push eax
cmovae ecx, edi
push ecx
call fcn.0040bac0
mov edx, eax
add esp, 0x10
cmp edx, 0xffffffff
je 0x41575a
lea eax, [edx + 1]
cmp eax, esi
je 0x41575a
cmp edx, 0xfffffffe
je 0x41575a
lea ecx, [ebp - 0x30]
call fcn.00414e60
test al, al
je 0x415754
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x30]
cmovae ecx, dword [ebp - 0x30]
xor edx, edx
call fcn.00415510
mov esi, eax
test esi, esi
jne 0x415600
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41574d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
cmovne esi, eax
jmp 0x415600
xor esi, esi
jmp 0x415600
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x30]
mov esi, 0xd
cmp ebx, 8
jb 0x41578f
lea ebx, [ebx*2 + 2]
mov eax, edi
cmp ebx, 0x1000
jb 0x415785
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4157ad
push ebx
push edi
call fcn.0043fc69
add esp, 8
mov eax, esi
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.0043fc58
mov esp, ebp
pop ebp
ret
call fcn.0044316c
int3