Function at 0x4085d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x44700c]
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 0x4088fd
cmp word [ecx], si
je 0x4088fd
mov eax, dword [0x4416f4]
lea edx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.00409da5
pop ecx
test al, al
je 0x4088ef
cmp dword [ebp - 0x10], esi
jge 0x408652
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp eax, dword [0x4416f4]
push 2
cmove eax, ecx
push eax
call fcn.0042b269
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x40864a
mov ecx, esi
jmp 0x408655
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esi
jmp 0x408655
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 0x408678
movzx edx, word [eax]
cmp dx, word [ebp - 0x2c]
je 0x40867e
cmp dx, di
je 0x40867e
sub eax, 2
cmp eax, ecx
jne 0x408667
jmp 0x408683
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x18]
call fcn.00414209
test ebx, ebx
je 0x4086b9
sub esp, 0xc
lea eax, [ebp - 0x18]
mov ecx, esp
push eax
call fcn.00413ead
lea ecx, [ebp - 0x24]
call fcn.00407c74
add esp, 0xc
lea ecx, [ebp - 0x18]
push eax
call fcn.0041407f
lea ecx, [ebp - 0x24]
call fcn.00413fa9
mov ebx, dword [ebp - 0x18]
push ebx
call fcn.0042b20a
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 [0x441754]
inc eax
mov dword [ebp - 0xc], ecx
mov cx, word [0x441758]
push eax
push 2
mov word [ebp - 8], cx
call fcn.00429ea4
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4088ed
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.0042b18e
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4088b4
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x4087f5
mov ecx, dword [ebp - 0x18]
push 0x5c
pop edx
movzx eax, word [ecx]
cmp ax, dx
jne 0x4087df
cmp word [ecx + 2], dx
jne 0x4087d8
cmp word [ecx + 4], 0x3f
push 0x441700
push esi
jne 0x4087d0
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.0042b18e
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4088b1
push 0x4410ac
push esi
call ebx
push edi
push esi
call ebx
push 3
push 0x44175c
push edi
call fcn.0042b1d0
add esp, 0xc
test eax, eax
jne 0x408885
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
call fcn.0042b18e
mov edi, eax
add esp, 0xc
test edi, edi
je 0x408885
push 0x4410ac
push esi
call ebx
push edi
push esi
call ebx
jmp 0x408885
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4087c7
push 0x4410ac
jmp 0x4087ec
push 0x2f
pop ecx
cmp ax, cx
jne 0x4087fd
push 0x441740
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4087fd
push 0x4410ac
push esi
call ebx
push edi
push esi
call ebx
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x408885
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x408885
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x40882a
cmp eax, 0xce
jne 0x408873
cmp dword [ebp - 0x30], 0
je 0x408873
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.00413e89
lea ecx, [ebp - 0x24]
call fcn.00407ff6
add esp, 0xc
push dword [ebp - 0x24]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x408869
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4088a3
lea ecx, [ebp - 0x24]
call fcn.00413fa9
jmp 0x408885
cmp eax, 0xb7
jne 0x4088b1
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4088b1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
call fcn.0042b18e
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x408721
jmp 0x4088b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x24]
call fcn.00413fa9
mov ebx, dword [ebp - 0x18]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4088d8
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 0x4088db
xor ebx, ebx
inc ebx
push dword [ebp - 0x2c]
call fcn.00429eaf
pop ecx
push esi
call fcn.00429eaf
pop ecx
jmp 0x4088f1
xor esi, esi
mov ebx, esi
lea ecx, [ebp - 0x18]
call fcn.00413fa9
mov eax, ebx
jmp 0x4088ff
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421e3f
leave
ret