Function at 0x45bc90
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4b7ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e44b4]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [esp + 0x20]
call fcn.004399c0
mov dword [esp + 0x88], 0
mov esi, dword [esp + 0x24]
test esi, esi
mov ebp, dword [esp + 0x20]
je 0x45bd4c
cmp word [ebp + esi*2 - 2], 0x5c
lea eax, [ebp + esi*2 - 2]
je 0x45bcf5
cmp eax, ebp
je 0x45bd4c
sub eax, 2
cmp word [eax], 0x5c
jne 0x45bce8
sub eax, ebp
sar eax, 1
test eax, eax
jle 0x45bd4c
lea ecx, [esi - 1]
cmp eax, ecx
jne 0x45bd4c
cmp esi, 3
jne 0x45bd14
cmp word [ebp + 2], 0x3a
je 0x45bed2
lea edx, [eax + 1]
cmp edx, esi
mov edi, 1
jle 0x45bd28
mov edi, esi
sub edi, eax
test edi, edi
jle 0x45bd4c
lea ecx, [edi + eax]
mov edx, esi
sub edx, ecx
lea edx, [edx + edx + 2]
push edx
lea ecx, [ebp + ecx*2]
push ecx
lea edx, [ebp + eax*2]
push edx
call fcn.00497880
add esp, 0xc
sub esi, edi
mov dword [esp + 0x24], esi
lea edi, [esp + 0x20]
lea eax, [esp + 0x2c]
call fcn.00439a20
mov byte [esp + 0x88], 1
mov ebx, esi
xor edi, edi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x45bf51
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x45be8a
cmp esi, edi
je 0x45bf0d
cmp word [ebp + esi*2 - 2], 0x5c
lea eax, [ebp + esi*2 - 2]
je 0x45bdb1
lea ebx, [ebx]
cmp eax, ebp
je 0x45bf0d
sub eax, 2
cmp word [eax], 0x5c
jne 0x45bda0
sub eax, ebp
sar eax, 1
mov ebx, eax
js 0x45bf0d
cmp ebx, edi
je 0x45bf0d
cmp word [ebp + ebx*2 - 2], 0x3a
je 0x45c017
mov ecx, ebx
lea esi, [esp + 0x38]
lea edx, [esp + 0x20]
call fcn.0043bbd0
mov edi, eax
mov dword [esp + 0x1c], edi
lea eax, [esp + 0x20]
cmp edi, eax
mov byte [esp + 0x88], 3
je 0x45be6c
mov word [ebp], 0
mov esi, dword [edi + 4]
add esi, 1
cmp esi, dword [esp + 0x28]
mov dword [esp + 0x24], 0
je 0x45be50
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00494ec8
add esp, 4
cmp dword [esp + 0x28], 0
mov edi, eax
jle 0x45be3d
push ebp
call fcn.004961ac
add esp, 4
mov ebp, edi
mov word [edi], 0
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], esi
mov edx, dword [edi]
mov ecx, ebp
movzx eax, word [edx]
mov word [ecx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x45be54
mov eax, dword [edi + 4]
mov dword [esp + 0x24], eax
mov byte [esp + 0x88], 1
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004961ac
mov esi, dword [esp + 0x28]
add esp, 4
jmp 0x45bd63
push 4
lea esi, [esp + 0x70]
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
call fcn.00439cb0
mov ecx, ebp
lea edx, [esp + 0x44]
mov byte [esp + 0x88], 2
call fcn.0045c3e0
test al, al
jne 0x45bef4
mov edx, dword [esp + 0x6c]
push edx
call fcn.004961ac
mov eax, dword [esp + 0x30]
add esp, 4
push eax
call fcn.004961ac
add esp, 4
push ebp
call fcn.004961ac
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 + 0x64]
shr ecx, 4
test cl, 1
jne 0x45bf3c
mov edx, dword [esp + 0x6c]
push edx
call fcn.004961ac
add esp, 4
mov eax, dword [esp + 0x2c]
push eax
call fcn.004961ac
add esp, 4
push ebp
call fcn.004961ac
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 ecx, dword [esp + 0x6c]
push ecx
call fcn.004961ac
add esp, 4
lea edi, [esp + 0x2c]
lea eax, [esp + 0x20]
call fcn.00439a80
mov ebp, dword [esp + 0x24]
cmp ebx, ebp
mov edi, dword [esp + 0x20]
jge 0x45bfd5
movzx ecx, word [edi + ebx*2 + 2]
cmp cx, 0x5c
lea eax, [edi + ebx*2 + 2]
je 0x45bf92
lea esp, [esp]
test cx, cx
je 0x45bf9a
movzx ecx, word [eax + 2]
add eax, 2
cmp cx, 0x5c
jne 0x45bf80
sub eax, edi
sar eax, 1
mov ebx, eax
jns 0x45bf9c
mov ebx, ebp
mov ecx, ebx
lea esi, [esp + 0x38]
lea edx, [esp + 0x20]
call fcn.0043bbd0
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [esp + 0x38]
test eax, eax
push edx
setne byte [esp + 0x1f]
call fcn.004961ac
add esp, 4
cmp byte [esp + 0x1b], 0
je 0x45c004
cmp ebx, ebp
jl 0x45bf6a
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004961ac
add esp, 4
push edi
call fcn.004961ac
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 eax, dword [esp + 0x2c]
push eax
call fcn.004961ac
add esp, 4
push edi
jmp 0x45bf1b
mov edx, dword [esp + 0x2c]
push edx
jmp 0x45bf12