Function at 0x40880c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x34], eax
mov dword [eax], esi
mov ebx, edx
mov dword [ebp - 0x30], ebx
push edi
test ecx, ecx
je 0x408b3a
cmp word [ecx], si
je 0x408b3a
mov eax, dword [0x4426c4]
lea edx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.0040a05f
pop ecx
test al, al
je 0x408b2c
cmp dword [ebp - 0x10], esi
jge 0x40888e
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp eax, dword [0x4426c4]
push 2
cmove eax, ecx
push eax
call fcn.0042ae1b
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x408886
mov ecx, esi
jmp 0x408891
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esi
jmp 0x408891
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push 0x5c
mov dword [ebp - 0x2c], 0x2f
pop edi
lea eax, [ecx + eax*2]
jmp 0x4088b4
movzx edx, word [eax]
cmp dx, word [ebp - 0x2c]
je 0x4088ba
cmp dx, di
je 0x4088ba
sub eax, 2
cmp eax, ecx
jne 0x4088a3
jmp 0x4088bf
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x18]
call fcn.004145c5
test ebx, ebx
je 0x4088f5
sub esp, 0xc
lea eax, [ebp - 0x18]
mov ecx, esp
push eax
call fcn.00414269
lea ecx, [ebp - 0x24]
call fcn.00407ef9
add esp, 0xc
lea ecx, [ebp - 0x18]
push eax
call fcn.0041443b
lea ecx, [ebp - 0x24]
call fcn.00414365
mov ebx, dword [ebp - 0x18]
push ebx
call fcn.0042adbc
mov edi, eax
mov dword [ebp - 0x28], esi
mov eax, 0x104
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x14], eax
pop ecx
cmovg eax, dword [ebp - 0x14]
mov ecx, dword [0x4427d0]
inc eax
mov dword [ebp - 0xc], ecx
mov cx, word [0x4427d4]
push eax
push 2
mov word [ebp - 8], cx
call fcn.00429764
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x408b2a
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.0042aa6e
mov edi, eax
add esp, 0xc
test edi, edi
je 0x408af1
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x408a31
mov ecx, dword [ebp - 0x18]
push 0x5c
pop edx
movzx eax, word [ecx]
cmp ax, dx
jne 0x408a1b
cmp word [ecx + 2], dx
jne 0x408a14
cmp word [ecx + 4], 0x3f
push 0x44277c
push esi
jne 0x408a0c
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
push esi
call ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
call fcn.0042aa6e
mov edi, eax
add esp, 0xc
test edi, edi
je 0x408aee
push 0x4427c0
push esi
call ebx
push edi
push esi
call ebx
push 3
push 0x4427d8
push edi
call fcn.0042aab0
add esp, 0xc
test eax, eax
jne 0x408ac1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
call fcn.0042aa6e
mov edi, eax
add esp, 0xc
test edi, edi
je 0x408ac1
push 0x4427c0
push esi
call ebx
push edi
push esi
call ebx
jmp 0x408ac1
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x408a03
push 0x4427c0
jmp 0x408a28
push 0x2f
pop ecx
cmp ax, cx
jne 0x408a39
push 0x4427bc
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x408a39
push 0x4427c0
push esi
call ebx
push edi
push esi
call ebx
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x408ac1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x408ac1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x408a66
cmp eax, 0xce
jne 0x408aaf
cmp dword [ebp - 0x30], 0
je 0x408aaf
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
sub esp, 0xc
mov ecx, esp
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
call fcn.00414245
lea ecx, [ebp - 0x24]
call fcn.0040825a
add esp, 0xc
push dword [ebp - 0x24]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x408aa5
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x408ae0
lea ecx, [ebp - 0x24]
call fcn.00414365
jmp 0x408ac1
cmp eax, 0xb7
jne 0x408aee
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x408aee
lea edx, [ebp - 0x28]
xor eax, eax
push edx
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.0042aa6e
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40895d
jmp 0x408aee
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x24]
call fcn.00414365
mov ebx, dword [ebp - 0x18]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x408b15
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
mov ecx, 0xa0000034
test eax, eax
cmove eax, ecx
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
jmp 0x408b18
xor ebx, ebx
inc ebx
push dword [ebp - 0x2c]
call fcn.0042976f
pop ecx
push esi
call fcn.0042976f
pop ecx
jmp 0x408b2e
xor esi, esi
mov ebx, esi
lea ecx, [ebp - 0x18]
call fcn.00414365
mov eax, ebx
jmp 0x408b3c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004219ad
leave
ret