Function at 0x10046ec0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10051c13
mov eax, dword fs:[0]
push eax
sub esp, 0x6b8
mov eax, dword [0x1006f184]
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 esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x10], ebx
je 0x10047198
push 0xffffffffffffffff
push ebx
xor eax, eax
push esi
lea ecx, [ebp - 0x6a4]
mov dword [ebp - 0x690], 7
mov dword [ebp - 0x694], ebx
mov word [ebp - 0x6a4], ax
call fcn.10024fd0
mov eax, dword [esi + 0x10]
mov edi, 8
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], edi
jb 0x10046f36
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x5c
mov esi, 7
je 0x10046f9d
xor ecx, ecx
push 1
mov word [ebp - 0x650], cx
push 0x10061dc8
lea ecx, [ebp - 0x650]
mov dword [ebp - 0x63c], esi
mov dword [ebp - 0x640], ebx
call fcn.10025ce0
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x650]
push edx
lea ecx, [ebp - 0x6a4]
mov byte [ebp - 4], 1
call fcn.10024ec0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x63c], edi
jb 0x10046f9d
mov eax, dword [ebp - 0x650]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x6a4]
cmp dword [ebp - 0x690], edi
jae 0x10046fb1
lea eax, [ebp - 0x6a4]
push pe_nt_image_headers32
lea ecx, [ebp - 0x418]
push ecx
push pe_nt_image_headers32
lea edx, [ebp - 0x618]
push edx
push pe_nt_image_headers32
lea ecx, [ebp - 0x218]
push ecx
push 3
lea edx, [ebp - 0x18]
push edx
push eax
call dword [sym.imp.MSVCR100.dll__wsplitpath_s]
add esp, 0x24
push 1
xor eax, eax
push 0x10061dc8
lea ecx, [ebp - 0x650]
mov dword [ebp - 0x63c], esi
mov dword [ebp - 0x640], ebx
mov word [ebp - 0x650], ax
call fcn.10025ce0
xor ecx, ecx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
mov dword [ebp - 0x674], esi
mov dword [ebp - 0x678], ebx
mov word [ebp - 0x688], cx
lea edx, [eax + 2]
jmp 0x10047030
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10047030
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x688]
call fcn.10025ce0
lea eax, [ebp - 0x650]
push eax
lea ecx, [ebp - 0x688]
push ecx
lea edx, [ebp - 0x66c]
push edx
mov byte [ebp - 4], 3
call fcn.10046de0
add esp, 0xc
cmp dword [ebp - 0x674], edi
jb 0x10047087
mov eax, dword [ebp - 0x688]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x674], esi
mov dword [ebp - 0x678], ebx
mov word [ebp - 0x688], cx
mov byte [ebp - 4], 6
cmp dword [ebp - 0x63c], edi
jb 0x100470b7
mov edx, dword [ebp - 0x650]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov word [ebp - 0x650], ax
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x63c], esi
mov dword [ebp - 0x640], ebx
mov dword [ebp - 0x620], esi
mov dword [ebp - 0x624], ebx
mov word [ebp - 0x634], cx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100470f0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x634]
call fcn.10025ce0
lea eax, [ebp - 0x66c]
push eax
mov byte [ebp - 4], 7
call fcn.10046cb0
add esp, 4
test al, al
jne 0x1004719f
cmp dword [ebp - 0x620], edi
jb 0x10047140
mov ecx, dword [ebp - 0x634]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
mov dword [ebp - 0x620], esi
mov dword [ebp - 0x624], ebx
mov word [ebp - 0x634], dx
cmp dword [ebp - 0x658], edi
jb 0x1004716c
mov eax, dword [ebp - 0x66c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x658], esi
mov dword [ebp - 0x65c], ebx
mov word [ebp - 0x66c], cx
cmp dword [ebp - 0x690], edi
jb 0x10047198
mov edx, dword [ebp - 0x6a4]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
jmp 0x100473d6
cmp dword [ebp - 0x624], ebx
jne 0x1004721d
cmp dword [ebp - 0x620], edi
jb 0x100471be
mov eax, dword [ebp - 0x634]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x620], esi
mov dword [ebp - 0x624], ebx
mov word [ebp - 0x634], cx
cmp dword [ebp - 0x658], edi
jb 0x100471ea
mov edx, dword [ebp - 0x66c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebp - 0x658], esi
mov dword [ebp - 0x65c], ebx
mov word [ebp - 0x66c], ax
cmp dword [ebp - 0x690], edi
jb 0x10047198
mov ecx, dword [ebp - 0x6a4]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
jmp 0x100473d6
mov ecx, dword [ebp - 0x620]
mov edx, dword [ebp - 0x634]
mov eax, edx
cmp ecx, edi
jae 0x10047235
lea eax, [ebp - 0x634]
cmp word [eax], 0x5c
jne 0x1004725a
mov eax, edx
cmp ecx, edi
jae 0x10047247
lea eax, [ebp - 0x634]
push eax
lea edx, [ebp - 0x6c4]
push edx
lea ecx, [ebp - 0x634]
call fcn.10046c70
push 1
push ebx
push 0x10061dc8
lea ecx, [ebp - 0x634]
call fcn.10046a00
mov esi, eax
cmp esi, 0xffffffff
je 0x100473b3
push esi
push ebx
lea eax, [ebp - 0x6c0]
push eax
lea ecx, [ebp - 0x634]
call fcn.10024350
inc esi
push esi
push ebx
lea ecx, [ebp - 0x634]
mov byte [ebp - 4], 8
call fcn.10025de0
xor ecx, ecx
push 1
mov word [ebp - 0x650], cx
mov esi, 7
push 0x10061dc8
lea ecx, [ebp - 0x650]
mov dword [ebp - 0x63c], esi
mov dword [ebp - 0x640], ebx
call fcn.10025ce0
lea edx, [ebp - 0x650]
push edx
lea eax, [ebp - 0x6c0]
push eax
lea ecx, [ebp - 0x688]
push ecx
mov byte [ebp - 4], 9
call fcn.10046e70
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x66c]
mov byte [ebp - 4], 0xa
call fcn.10024ec0
cmp dword [ebp - 0x674], edi
jb 0x10047315
mov edx, dword [ebp - 0x688]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebp - 0x674], esi
mov dword [ebp - 0x678], ebx
mov word [ebp - 0x688], ax
mov byte [ebp - 4], 8
cmp dword [ebp - 0x63c], edi
jb 0x10047345
mov ecx, dword [ebp - 0x650]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
lea edx, [ebp - 0x66c]
push edx
call fcn.10046cb0
add esp, 4
test al, al
jne 0x1004737a
mov eax, dword [ebp - 0x66c]
cmp dword [ebp - 0x658], edi
jae 0x1004736c
lea eax, [ebp - 0x66c]
push eax
call dword [sym.imp.MSVCR100.dll__wmkdir]
add esp, 4
test eax, eax
jne 0x100473f2
push 1
push ebx
push 0x10061dc8
lea ecx, [ebp - 0x634]
call fcn.10046a00
mov esi, eax
mov byte [ebp - 4], 7
cmp dword [ebp - 0x6ac], edi
jb 0x100473aa
mov eax, dword [ebp - 0x6c0]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp esi, 0xffffffff
jne 0x10047278
lea ecx, [ebp - 0x634]
call fcn.100242e0
lea ecx, [ebp - 0x66c]
call fcn.100242e0
lea ecx, [ebp - 0x6a4]
call fcn.100242e0
mov al, 1
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.1004c4fe
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x6c0]
call fcn.100242e0
lea ecx, [ebp - 0x634]
call fcn.100242e0
lea ecx, [ebp - 0x66c]
call fcn.100242e0
lea ecx, [ebp - 0x6a4]
call fcn.100242e0
xor al, al
jmp 0x100473d6