Function at 0x436070
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x48e400
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b5a50]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [esp + 0x20]
call fcn.0042d860
mov dword [esp + 0x88], 0
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
test esi, esi
je 0x436107
cmp word [ebp + esi*2 - 2], 0x5c
lea eax, [ebp + esi*2 - 2]
je 0x4360d5
cmp eax, ebp
je 0x436107
sub eax, 2
cmp word [eax], 0x5c
jne 0x4360c8
sub eax, ebp
sar eax, 1
test eax, eax
jle 0x436107
lea ecx, [esi - 1]
cmp eax, ecx
jne 0x436107
cmp esi, 3
jne 0x4360f4
cmp word [ebp + 2], 0x3a
je 0x43628e
mov ecx, eax
lea edi, [esp + 0x20]
call fcn.00436400
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
lea edi, [esp + 0x20]
lea eax, [esp + 0x2c]
call fcn.0042d8c0
mov byte [esp + 0x88], 1
mov ebx, esi
mov edi, edi
xor edi, edi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x43630d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x436246
cmp esi, edi
je 0x4362c9
cmp word [ebp + esi*2 - 2], 0x5c
lea eax, [ebp + esi*2 - 2]
je 0x436168
cmp eax, ebp
je 0x4362c9
sub eax, 2
cmp word [eax], 0x5c
jne 0x436157
sub eax, ebp
sar eax, 1
mov ebx, eax
js 0x4362c9
cmp ebx, edi
je 0x4362c9
cmp word [ebp + ebx*2 - 2], 0x3a
je 0x4363cc
mov ecx, ebx
lea esi, [esp + 0x38]
lea edx, [esp + 0x20]
call fcn.0042dab0
mov edi, eax
mov dword [esp + 0x1c], edi
lea edx, [esp + 0x20]
mov byte [esp + 0x88], 3
cmp edi, edx
je 0x436228
xor eax, eax
mov word [ebp], ax
mov esi, dword [edi + 4]
inc esi
mov dword [esp + 0x24], 0
cmp esi, dword [esp + 0x28]
je 0x436205
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043e234
add esp, 4
cmp dword [esp + 0x28], 0
mov edi, eax
jle 0x4361f2
push ebp
call fcn.0043e229
add esp, 4
mov ebp, edi
xor eax, eax
mov word [edi], ax
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], esi
mov edx, dword [edi]
mov ecx, ebp
lea esp, [esp]
movzx eax, word [edx]
mov word [ecx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x436210
mov ecx, dword [edi + 4]
mov dword [esp + 0x24], ecx
mov byte [esp + 0x88], 1
mov edx, dword [esp + 0x38]
push edx
call fcn.0043e229
mov esi, dword [esp + 0x28]
add esp, 4
jmp 0x436120
push 4
lea esi, [esp + 0x70]
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
call fcn.00411500
mov ecx, ebp
lea edx, [esp + 0x44]
mov byte [esp + 0x88], 2
call fcn.004365f0
test al, al
jne 0x4362b0
mov eax, dword [esp + 0x6c]
push eax
call fcn.0043e229
mov ecx, dword [esp + 0x30]
add esp, 4
push ecx
call fcn.0043e229
add esp, 4
push ebp
call fcn.0043e229
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
mov edx, dword [esp + 0x64]
shr edx, 4
test dl, 1
jne 0x4362f8
mov eax, dword [esp + 0x6c]
push eax
call fcn.0043e229
add esp, 4
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0043e229
add esp, 4
push ebp
call fcn.0043e229
add esp, 4
xor al, al
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
mov byte [esp + 0x88], 1
mov edx, dword [esp + 0x6c]
push edx
call fcn.0043e229
add esp, 4
lea edi, [esp + 0x2c]
lea eax, [esp + 0x20]
call fcn.0042d970
mov ebp, dword [esp + 0x24]
cmp ebx, ebp
mov edi, dword [esp + 0x20]
jge 0x43638a
movzx ecx, word [edi + ebx*2 + 2]
lea eax, [edi + ebx*2 + 2]
cmp cx, 0x5c
je 0x436347
test cx, cx
je 0x43634f
movzx ecx, word [eax + 2]
add eax, 2
cmp cx, 0x5c
jne 0x436335
sub eax, edi
sar eax, 1
mov ebx, eax
jns 0x436351
mov ebx, ebp
mov ecx, ebx
lea esi, [esp + 0x38]
lea edx, [esp + 0x20]
call fcn.0042dab0
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
mov eax, dword [esp + 0x38]
push eax
setne byte [esp + 0x1f]
call fcn.0043e229
add esp, 4
cmp byte [esp + 0x1b], 0
je 0x4363b9
cmp ebx, ebp
jl 0x436326
mov edx, dword [esp + 0x2c]
push edx
call fcn.0043e229
add esp, 4
push edi
call fcn.0043e229
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0043e229
add esp, 4
push edi
jmp 0x4362d7
mov eax, dword [esp + 0x2c]
push eax
jmp 0x4362ce