Function at 0x4102f0
Capabilities:
Create directory

Disassembly:
sub esp, 0x450
mov eax, dword [0x45ce14]
xor eax, esp
mov dword [esp + 0x44c], eax
push ebx
mov ebx, dword [esp + 0x458]
lea eax, [esp + 0x240]
push ebp
push esi
mov esi, dword [esp + 0x464]
lea ecx, [esp + 0x234]
push edi
push 0
push 0x108
push 2
push eax
call fcn.00403130
mov eax, dword [esp + 0x248]
xor ecx, ecx
push ebx
push esi
mov word [eax], cx
lea ecx, [esp + 0x240]
call fcn.00407d80
test al, al
je 0x4105bc
mov eax, dword [esp + 0x46c]
test al, 8
je 0x410375
push 0
lea ecx, [esp + 0x23c]
call fcn.004079d0
mov eax, dword [esp + 0x46c]
mov ebp, dword [esp + 0x248]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [esp + 0x10], ebp
test al, 1
je 0x410489
push 0
push 0x108
push 2
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x24]
call fcn.00403130
mov eax, dword [esp + 0x24]
xor ecx, ecx
push 0xffffffffffffffff
push ebp
mov word [eax], cx
lea ecx, [esp + 0x1c]
call fcn.00407ac0
test al, al
je 0x4104dd
mov esi, dword [esp + 0x24]
mov eax, 0x5c
test esi, esi
je 0x4103f6
cmp ax, word [esi]
jne 0x4103f6
cmp ax, word [esi + 2]
jne 0x4103f6
push eax
lea eax, [esi + 4]
push eax
call fcn.0040a720
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4103f6
sub ebp, esi
add ebp, 2
sar ebp, 1
jmp 0x4103f8
xor ebp, ebp
lea eax, [esi + ebp*2]
push 0x5c
push eax
call fcn.0040a720
mov edi, eax
add esp, 8
cmp edi, esi
jbe 0x410428
cmp word [edi - 2], 0x3a
je 0x410418
cmp ebp, 4
jbe 0x410428
lea eax, [edi + 2]
push 0x5c
push eax
call fcn.0040a720
add esp, 8
mov edi, eax
test edi, edi
je 0x410476
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
push eax
push esi
mov word [edi], ax
call ebp
test eax, eax
je 0x4104a9
test byte [esp + 0x46c], 2
je 0x41045b
mov eax, dword [0x45e9d8]
test eax, eax
je 0x41045b
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.0040a720
add esp, 8
mov edi, eax
test edi, edi
jne 0x410432
lea ecx, [esp + 0x14]
call fcn.004031c0
mov ebp, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebp
call fcn.0040a800
add esp, 4
cmp eax, 3
ja 0x41052a
push ebp
call fcn.00411590
add esp, 4
jmp 0x410534
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
cmp eax, 0xb7
jne 0x41050c
call fcn.00412450
add esp, 4
test al, al
jne 0x41045b
test byte [esp + 0x46c], 4
je 0x4104ed
push 4
push ebx
push esi
call fcn.00411080
add esp, 0xc
test al, al
jne 0x410472
lea ecx, [esp + 0x14]
xor bl, bl
call fcn.004031c0
jmp 0x4105be
mov eax, dword [ebx]
push esi
push str.__s__could_not_be_created
push ebx
call dword [eax + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x14]
mov bl, al
call fcn.004031c0
jmp 0x4105be
mov eax, dword [ebx]
push str.__s__could_not_be_created
push ebx
call dword [eax + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x14]
mov bl, al
call fcn.004031c0
jmp 0x4105be
push 0
push ebp
call esi
test eax, eax
setne al
test al, al
jne 0x41057a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4105ad
push ebp
call fcn.00412450
add esp, 4
test al, al
jne 0x410596
test byte [esp + 0x46c], 4
je 0x41059a
push 4
push ebx
push ebp
call fcn.00411080
add esp, 0xc
test al, al
je 0x4105bc
push 0
push ebp
call esi
test eax, eax
setne al
test al, al
je 0x4105ad
test byte [esp + 0x46c], 2
je 0x410596
mov eax, dword [0x45e9d8]
test eax, eax
je 0x410596
push 0
push ebp
push 5
push 8
call eax
mov bl, 1
jmp 0x4105be
mov eax, dword [ebx]
push ebp
push str.__s__could_not_be_created
push ebx
call dword [eax + 0x1c]
add esp, 0xc
mov bl, al
jmp 0x4105be
mov eax, dword [ebx]
push ebp
push str.__s__could_not_be_created
push ebx
call dword [eax + 0x1c]
add esp, 0xc
xor bl, bl
lea ecx, [esp + 0x238]
call fcn.004031c0
mov ecx, dword [esp + 0x45c]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041e282
add esp, 0x450
ret