Function at 0x433600
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x24c
push ebx
mov ebx, dword [ebp + 8]
push esi
lea esi, [eax + 0x10]
push edi
mov dword [ebx], 0
mov dword [ebx + 4], 0
cmp dword [esi], 0
jne 0x433638
mov ecx, dword [eax]
test ecx, ecx
je 0x433638
push ecx
push dword [eax + 8]
mov ecx, esi
call fcn.0040e3d0
push dword [esi]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push dword [esi + 8]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.00403040
push 0x54c958
call fcn.00420e00
mov ecx, dword [ebp - 0x20]
add esp, 4
cmp ecx, eax
jb 0x43368e
push eax
sub ecx, eax
mov eax, dword [ebp - 0x18]
push 0x54c958
lea eax, [eax + ecx*2]
push eax
call fcn.00420e40
add esp, 0xc
test eax, eax
sete al
test al, al
jne 0x4336dd
push 0x54c958
call fcn.00420e00
mov ecx, dword [ebp - 0x20]
mov esi, eax
add esp, 4
lea eax, [ecx + esi]
cmp eax, dword [ebp - 0x1c]
jb 0x4336b4
push eax
lea ecx, [ebp - 0x20]
call fcn.00403220
mov ecx, dword [ebp - 0x20]
lea eax, [esi + esi]
push eax
mov eax, dword [ebp - 0x18]
push 0x54c958
lea eax, [eax + ecx*2]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov eax, dword [ebp - 0x18]
add ecx, esi
add esp, 0xc
mov word [eax + ecx*2], dx
add dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x18]
mov ecx, 0x5b3144
test eax, eax
push 0x104
cmovne ecx, eax
lea eax, [ebp - 0x24c]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfullpath]
mov esi, eax
push esi
call fcn.00420e00
add esp, 0x10
lea ecx, [ebp - 0x20]
push eax
push esi
call fcn.00403040
push 0x54c95c
mov dword [ebp - 0x30], 0
xor esi, esi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call fcn.00420e00
add esp, 4
cmp dword [ebp - 0x20], eax
jb 0x433792
push eax
push 0x54c95c
push dword [ebp - 0x18]
call fcn.00420e40
add esp, 0xc
test eax, eax
sete al
test al, al
mov eax, dword [ebp - 0x18]
je 0x433795
test eax, eax
je 0x43378c
cmp word [eax], si
je 0x43378c
cmp dword [ebp - 0x20], 2
jbe 0x43378c
add eax, 4
push 0x54c958
push eax
call fcn.00420dd0
mov esi, eax
add esp, 8
mov eax, dword [ebp - 0x18]
test esi, esi
je 0x43378c
cmp esi, eax
jb 0x43378c
sub esi, eax
sar esi, 1
inc esi
jmp 0x433795
or esi, 0xffffffff
inc esi
jmp 0x433795
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x433a3b
cmp word [eax], 0
je 0x433a3b
cmp esi, dword [ebp - 0x20]
jae 0x433a3b
lea eax, [eax + esi*2]
push 0x54c958
push eax
call fcn.00420dd0
mov esi, eax
add esp, 8
test esi, esi
je 0x433a3b
mov edi, dword [ebp - 0x18]
cmp esi, edi
jb 0x433a3b
sub esi, edi
sar esi, 1
cmp esi, 0xffffffff
je 0x433a3b
mov edx, dword [ebp - 0x20]
inc esi
xor eax, eax
mov dword [ebp - 0x10], 0
test edx, edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov ecx, esi
cmove eax, edx
cmp esi, 0xffffffff
je 0x433815
lea ebx, [eax + esi]
cmp ebx, edx
ja 0x433815
cmp ebx, eax
jae 0x433819
mov ecx, edx
sub ecx, eax
push ecx
lea eax, [edi + eax*2]
mov dword [ebp - 0x40], 0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call fcn.00403040
cmp dword [ebp - 0x10], 0
je 0x433892
cmp dword [ebp - 0xc], 1
jb 0x43384c
mov eax, dword [ebp - 8]
jmp 0x43388a
push 0
push 2
lea ecx, [ebp - 4]
call fcn.00420b70
mov edi, eax
test edi, edi
je 0x433883
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
add eax, eax
push eax
push dword [ebp - 8]
call fcn.00420bb0
xor eax, eax
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 1
mov word [edi], ax
mov dword [ebp - 0x10], eax
jmp 0x433892
mov eax, dword [ebp - 8]
test eax, eax
je 0x433892
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
add eax, eax
push eax
push dword [ebp - 8]
call fcn.00420bb0
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x40]
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x3c]
push 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x3c], 0
call fcn.00420bb0
cmp dword [ebp - 0x30], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
je 0x433942
cmp dword [ebp - 0x2c], 1
jb 0x4338fc
mov eax, dword [ebp - 0x28]
jmp 0x43393a
push 0
push 2
lea ecx, [ebp - 0x24]
call fcn.00420b70
mov edi, eax
test edi, edi
je 0x433933
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
add eax, eax
push eax
push dword [ebp - 0x28]
call fcn.00420bb0
xor eax, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], 1
mov word [edi], ax
mov dword [ebp - 0x30], eax
jmp 0x433942
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x433942
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
add eax, eax
push eax
push dword [ebp - 0x28]
call fcn.00420bb0
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
push 0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], 0
call fcn.00420bb0
mov eax, dword [ebp - 0x28]
mov ecx, 0x5b3144
push 0
push 0x2000000
push 3
push 0
test eax, eax
mov dword [ebp - 8], 0
push 1
cmovne ecx, eax
mov dword [ebp - 0xc], 0
push 0
push ecx
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x433a2f
mov eax, dword [ebp - 0x28]
mov ecx, 0x5b3144
test eax, eax
push 0
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
je 0x433792
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00421450
mov ebx, dword [ebp + 8]
add esp, 8
mov eax, dword [ebx + 4]
test eax, eax
je 0x433a08
push eax
call fcn.00546a09
add esp, 4
push 0
mov dword [ebx], 1
mov dword [ebx + 4], 0
call fcn.00546a09
add esp, 4
lea ecx, [ebp - 0x34]
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
call fcn.00420bb0
jmp 0x433a3e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x433792
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
add eax, eax
push eax
push dword [ebp - 0x28]
call fcn.00420bb0
mov ecx, dword [ebp - 0x1c]
add ecx, ecx
mov dword [ebp - 0x28], 0
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
call fcn.00420bb0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret