Function at 0x46e910
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494b94
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x4ad1bc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24c], esi
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x250], ebx
cmp dword [ebp + 0x14], 0
mov dword [ebp - 4], 2
mov dword [ebp - 0x254], 0
je 0x46e975
push 1
push 0x4a8334
lea ecx, [ebp + 0x10]
call fcn.00405e70
mov ecx, dword [ebp + 8]
cmp dword [ecx - 4], 1
jle 0x46e98c
push dword [ecx - 0xc]
lea ecx, [ebp + 8]
call fcn.00403a80
mov ecx, dword [ebp + 8]
sub esp, 8
call fcn.0046ddc0
add esp, 8
mov dword [esi], eax
or edi, 0xffffffff
test eax, eax
jne 0x46e9b5
test ebx, ebx
je 0x46ee01
mov dword [ebx], 1
xor ebx, ebx
jmp 0x46ee16
cmp dword [eax], 1
je 0x46e9c6
mov dword [0x4b0774], 0x80000
jmp 0x46e9d8
push ecx
mov ecx, dword [eax + 4]
call fcn.0046d170
mov dword [0x4b0774], eax
test eax, eax
je 0x46ea0f
mov ecx, dword [esi]
test ecx, ecx
je 0x46e9fa
cmp dword [ecx], 2
sete al
test al, al
je 0x46e9ef
call fcn.0046e850
jmp 0x46e9f4
call fcn.0046df40
mov dword [esi], 0
test ebx, ebx
je 0x46ee01
mov dword [ebx], 2
xor ebx, ebx
jmp 0x46ee16
mov ecx, dword [esi]
lea eax, [ebp - 0x244]
push eax
mov edx, edi
call fcn.0046dee0
add esp, 4
test eax, eax
je 0x46ea42
mov ecx, esi
call fcn.0046eea0
test ebx, ebx
je 0x46ee01
mov dword [ebx], 3
xor ebx, ebx
jmp 0x46ee16
mov eax, dword [ebp - 0x244]
xor ebx, ebx
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x25c], 0xffffffff
test eax, eax
jle 0x46ed5d
mov ecx, dword [esi]
xor eax, eax
mov dword [ebp - 0x244], 0
mov word [ebp - 0x240], ax
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x46edc5
cmp dword [ecx], 1
jne 0x46edb9
mov ecx, dword [ecx + 4]
lea eax, [ebp - 0x244]
push eax
push ebx
call fcn.0046d1d0
mov dword [0x4b0774], eax
test eax, eax
jne 0x46edcf
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x258], edx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46eac0
sub ecx, edx
sar ecx, 1
movzx eax, word [ebp + ecx*2 - 0x242]
cmp eax, 0x5c
je 0x46eae1
cmp eax, 0x2f
jne 0x46eaeb
mov dword [ebp - 0x258], 0x10
mov eax, dword [ebp + 0x10]
cmp dword [eax - 4], 1
jle 0x46eb02
push dword [eax - 0xc]
lea ecx, [ebp + 0x10]
call fcn.00403a80
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00473c2b
lea ecx, [ebp - 0x240]
add esp, 8
cmp eax, ecx
jne 0x46ed47
cmp dword [ebp + 0x14], 0
je 0x46eb9c
push str._
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x264]
call fcn.004057d0
add esp, 4
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x260]
call fcn.00405cf0
add esp, 4
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x260]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46eb7b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x264]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46eb9c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x258], 0x10
lea edx, [ebp + 0xc]
mov dword [ebp - 0x25c], ebx
push str._
je 0x46ecab
lea ecx, [ebp - 0x26c]
call fcn.004057d0
add esp, 4
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x268]
call fcn.004057d0
add esp, 4
mov byte [ebp - 4], 6
mov ecx, dword [esi]
test ecx, ecx
jne 0x46ebfb
mov dword [0x4b0774], 0x10000
mov esi, 0x10000
jmp 0x46ec27
cmp dword [ecx], 1
je 0x46ec11
mov dword [0x4b0774], 0x80000
mov esi, 0x80000
jmp 0x46ec27
mov ecx, dword [ecx + 4]
sub esp, 8
push dword [eax]
push ebx
call fcn.0046da00
mov esi, eax
mov dword [0x4b0774], esi
mov byte [ebp - 4], 5
mov ecx, edi
mov edx, dword [ebp - 0x268]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x46ec48
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x26c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46ec69
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x46ec96
cmp esi, 0x200
je 0x46ec96
cmp esi, 0x5000000
jne 0x46ed7f
cmp dword [ebp - 0x18], 0
jne 0x46ed7f
mov esi, dword [ebp - 0x24c]
jmp 0x46ed50
mov esi, dword [ebp - 0x24c]
mov dword [ebp - 0x254], 1
jmp 0x46ed50
lea ecx, [ebp - 0x274]
call fcn.004057d0
add esp, 4
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x270]
call fcn.004057d0
add esp, 4
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x270]
test eax, eax
mov eax, edi
sete byte [ebp - 0x245]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46ed04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x274]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46ed25
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x245], 0
je 0x46ed3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x46ed9e
mov dword [ebp - 0x254], 1
jmp 0x46ed50
cmp dword [ebp - 0x25c], 0
jg 0x46ed5d
inc ebx
cmp ebx, dword [ebp - 0x278]
jl 0x46ea62
mov ecx, dword [esi]
test ecx, ecx
je 0x46ee10
cmp dword [ecx], 2
sete al
test al, al
je 0x46ee05
call fcn.0046e850
jmp 0x46ee0a
mov ecx, dword [ebp - 0x24c]
call fcn.0046eea0
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x46ee01
mov dword [eax], 6
xor ebx, ebx
jmp 0x46ee16
mov ecx, esi
call fcn.0046eea0
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x46ee01
mov dword [eax], 5
xor ebx, ebx
jmp 0x46ee16
mov dword [0x4b0774], 0x80000
jmp 0x46edcf
mov dword [0x4b0774], 0x10000
mov ecx, dword [esi]
test ecx, ecx
je 0x46edf1
cmp dword [ecx], 2
sete al
test al, al
je 0x46ede6
call fcn.0046e850
jmp 0x46edeb
call fcn.0046df40
mov dword [esi], 0
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x46ee01
mov dword [eax], 4
xor ebx, ebx
jmp 0x46ee16
call fcn.0046df40
mov dword [esi], 0
mov ebx, dword [ebp - 0x254]
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46ee34
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46ee52
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x46ee71
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047137e
mov esp, ebp
pop ebp
ret 0x14