Function at 0x410210
Capabilities:
Create directory

Disassembly:
sub esp, 0x450
mov eax, dword [0x45cdfc]
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.00403170
mov eax, dword [esp + 0x248]
xor ecx, ecx
push ebx
push esi
mov word [eax], cx
lea ecx, [esp + 0x240]
call fcn.00407d60
test al, al
je 0x4104dc
mov eax, dword [esp + 0x46c]
test al, 8
je 0x410295
push 0
lea ecx, [esp + 0x23c]
call fcn.004079b0
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 0x4103a9
push 0
push 0x108
push 2
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x24]
call fcn.00403170
mov eax, dword [esp + 0x24]
xor ecx, ecx
push 0xffffffffffffffff
push ebp
mov word [eax], cx
lea ecx, [esp + 0x1c]
call fcn.00407aa0
test al, al
je 0x4103fd
mov esi, dword [esp + 0x24]
mov eax, 0x5c
test esi, esi
je 0x410316
cmp ax, word [esi]
jne 0x410316
cmp ax, word [esi + 2]
jne 0x410316
push eax
lea eax, [esi + 4]
push eax
call fcn.0040a620
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x410316
sub ebp, esi
add ebp, 2
sar ebp, 1
jmp 0x410318
xor ebp, ebp
lea eax, [esi + ebp*2]
push 0x5c
push eax
call fcn.0040a620
mov edi, eax
add esp, 8
cmp edi, esi
jbe 0x410348
cmp word [edi - 2], 0x3a
je 0x410338
cmp ebp, 4
jbe 0x410348
lea eax, [edi + 2]
push 0x5c
push eax
call fcn.0040a620
add esp, 8
mov edi, eax
test edi, edi
je 0x410396
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 0x4103c9
test byte [esp + 0x46c], 2
je 0x41037b
mov eax, dword [0x45e9c8]
test eax, eax
je 0x41037b
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.0040a620
add esp, 8
mov edi, eax
test edi, edi
jne 0x410352
lea ecx, [esp + 0x14]
call fcn.00403200
mov ebp, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebp
call fcn.0040a700
add esp, 4
cmp eax, 3
ja 0x41044a
push ebp
call fcn.004114b0
add esp, 4
jmp 0x410454
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
cmp eax, 0xb7
jne 0x41042c
call fcn.00412360
add esp, 4
test al, al
jne 0x41037b
test byte [esp + 0x46c], 4
je 0x41040d
push 4
push ebx
push esi
call fcn.00410fa0
add esp, 0xc
test al, al
jne 0x410392
lea ecx, [esp + 0x14]
xor bl, bl
call fcn.00403200
jmp 0x4104de
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.00403200
jmp 0x4104de
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.00403200
jmp 0x4104de
push 0
push ebp
call esi
test eax, eax
setne al
test al, al
jne 0x41049a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4104cd
push ebp
call fcn.00412360
add esp, 4
test al, al
jne 0x4104b6
test byte [esp + 0x46c], 4
je 0x4104ba
push 4
push ebx
push ebp
call fcn.00410fa0
add esp, 0xc
test al, al
je 0x4104dc
push 0
push ebp
call esi
test eax, eax
setne al
test al, al
je 0x4104cd
test byte [esp + 0x46c], 2
je 0x4104b6
mov eax, dword [0x45e9c8]
test eax, eax
je 0x4104b6
push 0
push ebp
push 5
push 8
call eax
mov bl, 1
jmp 0x4104de
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 0x4104de
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.00403200
mov ecx, dword [esp + 0x45c]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041e5aa
add esp, 0x450
ret