Function at 0x412620
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443416
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x466df4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x444]
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x458]
push 0
push 0x108
push 2
push eax
mov dword [ebp - 0x45c], ebx
call fcn.00403220
mov eax, dword [ebp - 0x448]
xor ecx, ecx
mov word [eax], cx
push ebx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x458]
push esi
call fcn.004089e0
test al, al
je 0x4128f7
mov eax, dword [ebp + 0x10]
test al, 8
je 0x4126af
push 0
lea ecx, [ebp - 0x458]
call fcn.00408630
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0x448]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x460], esi
test al, 1
je 0x4127e9
push 0
push 0x108
push 2
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x234]
call fcn.00403220
mov eax, dword [ebp - 0x224]
xor ecx, ecx
mov word [eax], cx
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call fcn.00408720
test al, al
je 0x412832
mov esi, dword [ebp - 0x224]
mov eax, 0x5c
test esi, esi
je 0x41273f
cmp ax, word [esi]
jne 0x41273f
cmp ax, word [esi + 2]
jne 0x41273f
push eax
lea eax, [esi + 4]
push eax
call fcn.0040bbb0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x41273f
sub ebx, esi
add ebx, 2
sar ebx, 1
jmp 0x412741
xor ebx, ebx
lea eax, [esi + ebx*2]
push 0x5c
push eax
call fcn.0040bbb0
mov edi, eax
add esp, 8
cmp edi, esi
jbe 0x412771
cmp word [edi - 2], 0x3a
je 0x412761
cmp ebx, 4
jbe 0x412771
lea eax, [edi + 2]
push 0x5c
push eax
call fcn.0040bbb0
add esp, 8
mov edi, eax
test edi, edi
je 0x4127c4
mov ebx, dword [ebp - 0x45c]
nop dword [eax + eax]
xor eax, eax
push eax
push esi
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x412802
test byte [ebp + 0x10], 2
je 0x4127a9
mov eax, dword [0x468aac]
test eax, eax
je 0x4127a9
push 0
push esi
push 5
push 8
call eax
mov eax, 0x5c
push eax
mov word [edi], ax
lea eax, [edi + 2]
push eax
call fcn.0040bbb0
add esp, 8
mov edi, eax
test edi, edi
jne 0x412780
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0xa
call fcn.004032b0
mov ebx, dword [ebp - 0x45c]
mov esi, dword [ebp - 0x460]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 0
push esi
call fcn.0040bc90
add esp, 4
cmp eax, 3
ja 0x41286d
push esi
call fcn.00413960
add esp, 4
jmp 0x412877
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
cmp eax, 0xb7
jne 0x41285b
call fcn.00414bb0
add esp, 4
test al, al
jne 0x4127a9
test byte [ebp + 0x10], 4
je 0x412848
push 4
push ebx
push esi
call fcn.00413600
add esp, 0xc
test al, al
jne 0x4127c0
xor bl, bl
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 8
call fcn.004032b0
jmp 0x4128f9
mov eax, dword [ebx]
push esi
push str.__s__could_not_be_created
push ebx
call dword [eax + 0x1c]
add esp, 0xc
mov bl, al
jmp 0x412834
mov eax, dword [ebx]
push str.__s__could_not_be_created
push ebx
call dword [eax + 0x1c]
add esp, 0xc
mov bl, al
jmp 0x412834
push 0
push esi
call edi
test eax, eax
setne al
test al, al
jne 0x4128b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4128e8
push esi
call fcn.00414bb0
add esp, 4
test al, al
jne 0x4128d1
test byte [ebp + 0x10], 4
je 0x4128d5
push 4
push ebx
push esi
call fcn.00413600
add esp, 0xc
test al, al
je 0x4128f7
push 0
push esi
call edi
test eax, eax
setne al
test al, al
je 0x4128e8
test byte [ebp + 0x10], 2
je 0x4128d1
mov eax, dword [0x468aac]
test eax, eax
je 0x4128d1
push 0
push esi
push 5
push 8
call eax
mov bl, 1
jmp 0x4128f9
mov eax, dword [ebx]
push esi
push str.__s__could_not_be_created
push ebx
call dword [eax + 0x1c]
add esp, 0xc
mov bl, al
jmp 0x4128f9
mov eax, dword [ebx]
push esi
push str.__s__could_not_be_created
push ebx
call dword [eax + 0x1c]
add esp, 0xc
xor bl, bl
lea ecx, [ebp - 0x458]
mov dword [ebp - 4], 0xf
call fcn.004032b0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422f50
mov esp, ebp
pop ebp
ret