Function at 0x47b680
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1de7
mov eax, dword fs:[0]
push eax
sub esp, 0x870
mov eax, dword [0x608554]
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 dword [ebp - 0x86c], ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push ecx
push str.OperateTempFolder::CopytempDriverSet
lea ecx, [ebp - 0x868]
mov dword [ebp - 0x874], eax
call fcn.0040a480
mov dword [ebp - 4], 0
mov esi, dword [0x608f30]
cmp esi, 0x608f30
je 0x47b762
test byte [esi + 0x1c], 1
je 0x47b71e
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5cf920
mov ecx, 0x34
cmovae eax, dword [0x608f54]
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.00401840
mov esi, dword [0x608f30]
add esp, 0xc
cmp esi, 0x608f30
je 0x47b762
test byte [esi + 0x1c], 1
je 0x47b762
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
push dword [ebp + 8]
cmovae eax, dword [0x608f54]
mov edx, 0x5cf920
push eax
push dword [esi + 0x14]
mov ecx, 0x35
push dword [esi + 0x10]
call fcn.0040c2f0
mov esi, dword [0x608f30]
add esp, 0x14
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00571c00
mov eax, dword [0x6184f0]
add esp, 0xc
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x3d4]
mov dword [ebp - 0x870], eax
test edi, edi
je 0x47bb52
cmp dword [ebp - 0x874], ebx
je 0x47bb52
mov ecx, dword [ebp - 0x86c]
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call fcn.0047bbe0
cmp eax, 1
jne 0x47bb4a
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x47b84e
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x86c], eax
mov esi, dword [0x608f30]
cmp esi, 0x608f30
je 0x47b835
test byte [esi + 0x1c], 4
je 0x47b835
cmp dword [0x608f68], 8
lea eax, [ebp - 0x218]
push eax
mov ecx, 0x608f54
mov edx, 0x5cf920
cmovae ecx, dword [0x608f54]
push ecx
push dword [esi + 0x14]
lea ecx, [ebx + 0x36]
push dword [esi + 0x10]
call fcn.00405920
mov esi, dword [0x608f30]
add esp, 0x10
mov eax, dword [ebp - 0x86c]
cmp eax, 1
je 0x47b84e
mov ebx, 0x80010009
mov dword [0x6183ec], 9
jmp 0x47bb61
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00571c00
push 0
push 0
push 0
push 0
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0x104
lea eax, [ebp - 0x628]
push eax
push edi
call fcn.00580f0a
add esp, 0x48
lea eax, [ebp - 0x420]
push 0
push 0
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.00580cd3
add esp, 0x18
cmp dword [ebp - 0x870], ebx
jbe 0x47ba74
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x47bbce
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x86c], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x47b921
movzx eax, ax
lea ecx, [ebp - 0x86c]
push eax
call fcn.00403020
jmp 0x47b952
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b930
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x86c]
call fcn.00403bb0
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x86c]
push 0x5c
push esi
call fcn.00571054
add esp, 8
test eax, eax
jne 0x47b970
or eax, 0xffffffff
jmp 0x47b974
sub eax, esi
sar eax, 1
push 1
push eax
lea ecx, [ebp - 0x86c]
call fcn.00446f40
mov esi, dword [ebp - 0x86c]
push 0x5c
push esi
call fcn.00571054
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x47b99e
or ecx, 0xffffffff
jmp 0x47b9a2
sub ecx, esi
sar ecx, 1
mov eax, dword [esi - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x870]
push eax
lea ecx, [ebp - 0x86c]
call fcn.0041d2b0
mov byte [ebp - 4], 3
lea edx, [esi - 0x10]
mov eax, dword [ebp - 0x870]
or ebx, 0xffffffff
mov dword [ebp - 0x878], edx
lea edi, [eax - 0x10]
cmp edi, edx
je 0x47ba33
cmp dword [edx + 0xc], 0
lea esi, [edx + 0xc]
jl 0x47ba1e
mov ecx, dword [edi]
cmp ecx, dword [edx]
jne 0x47ba1e
mov ecx, edi
call fcn.00403af0
mov dword [ebp - 0x87c], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x47ba13
mov esi, dword [ebp - 0x878]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x87c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x86c], esi
jmp 0x47ba33
push dword [eax - 0xc]
lea ecx, [ebp - 0x86c]
push eax
call fcn.00403bb0
mov esi, dword [ebp - 0x86c]
mov byte [ebp - 4], 2
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x47ba4b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x47ba72
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x47badb
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x47bacc
test byte [ecx + 0x1c], 4
je 0x47bacc
cmp dword [0x608f68], 8
lea edx, [ebp - 0x218]
push edx
mov eax, 0x608f54
mov edx, 0x5cf920
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x37
call fcn.00405920
add esp, 0x10
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x86c]
call fcn.0046a2f0
push 0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x86c]
call fcn.0046e250
cmp eax, 1
je 0x47bb2c
lea ecx, [ebp - 0x86c]
mov dword [0x6183ec], 0xc
mov ebx, 0x8001000c
call fcn.0046a3c0
mov esi, dword [0x608f30]
jmp 0x47bb61
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x874]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x86c]
call fcn.0046a3c0
mov esi, dword [0x608f30]
jmp 0x47bb61
mov ebx, 0x80010001
mov dword [0x6183ec], 1
mov byte [ebp - 0x864], 1
cmp esi, 0x608f30
je 0x47bba3
test byte [esi + 0x1c], 1
je 0x47bba3
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5cf920
push eax
push dword [esi + 0x14]
mov ecx, 0x38
push dword [esi + 0x10]
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x868]
call fcn.0040a570
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 - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.004013a0
int3