Function at 0x100405a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10085cdd
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x100c6034]
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, edx
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
test edi, edi
je 0x10040646
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x48]
push eax
mov edx, str.TempFolder
call fcn.1003ee90
mov esi, dword [ebp - 0x44]
add esp, 4
test esi, esi
jne 0x1004060a
xor ecx, ecx
jmp 0x1004061f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10040610
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.1002b490
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.1005c4f5
add esp, 4
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x100406b6
lea ecx, [ebp - 0x40]
call fcn.10029810
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.10031e50
mov edx, eax
mov byte [ebp - 4], 2
cmp dword [edx + 0x14], 8
jb 0x10040676
mov edx, dword [edx]
test edx, edx
jne 0x1004067e
xor ecx, ecx
jmp 0x10040692
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10040683
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.1002b490
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10027d30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10027d30
call fcn.10029330
mov ecx, eax
test ecx, ecx
je 0x1004082c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 6
test edi, edi
je 0x10040746
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x50]
push eax
mov edx, 0x100a7a58
mov ecx, edi
call fcn.1003ee90
mov esi, dword [ebp - 0x4c]
add esp, 4
test esi, esi
jne 0x1004070b
xor ecx, ecx
jmp 0x1004071f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10040710
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x44]
call fcn.1002b490
mov byte [ebp - 4], 6
push esi
call fcn.1005c4f5
add esp, 4
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
jmp 0x10040751
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x44]
call fcn.1002bf90
push 1
lea eax, [ebp - 0x4c]
mov ecx, ebx
push eax
call fcn.1002c4a0
mov byte [ebp - 4], 8
mov ecx, 0x100a5d9c
mov eax, dword [eax]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10040796
test dx, dx
je 0x10040792
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10040796
add eax, 4
add ecx, 4
test dx, dx
jne 0x10040770
xor esi, esi
jmp 0x1004079b
sbb esi, esi
or esi, 1
mov byte [ebp - 4], 6
or edi, 0xffffffff
mov edx, dword [ebp - 0x4c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100407bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x100407ce
push 1
push 0x100a5d9c
mov ecx, ebx
call fcn.1002ae70
push 7
push str.AI_WSP_
mov ecx, ebx
call fcn.1002ae70
mov esi, dword [ebp - 0x44]
mov ecx, ebx
push dword [esi - 0xc]
push esi
call fcn.1002ae70
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x10040810
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.1005c4e7
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100269b0
int3