Function at 0x478f20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1ac1
mov eax, dword fs:[0]
push eax
sub esp, 0x860
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 - 0x864], ecx
push ecx
push str.OperateTempFolder::CopyDriverToTemp
lea ecx, [ebp - 0x848]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x478fac
test byte [ecx + 0x1c], 1
je 0x478fac
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5cf920
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x11
call fcn.00401840
add esp, 0xc
mov eax, dword [0x6184f0]
xor ebx, ebx
mov dword [ebp - 0x860], ebx
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov esi, dword [eax]
mov edi, dword [eax + 4]
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x479417
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x854], eax
push 0xac
lea ecx, [ebp - 0x854]
mov byte [ebp - 4], 1
call fcn.00403020
mov ecx, dword [0x6184f8]
lea eax, [esi + edi]
push eax
push 0x3f1
call fcn.004b2fb0
mov esi, dword [ebp - 0x854]
mov ecx, dword [0x6184f8]
push esi
push 0x3f1
call fcn.004b3300
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x810]
add esp, 0xc
mov ecx, dword [ecx + 0x1c]
push eax
push str.INSTALLDIR
call fcn.004f65f0
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4790b4
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4790a5
test byte [ecx + 0x1c], 4
je 0x4790a5
cmp dword [0x608f68], 8
lea edx, [ebp - 0x810]
push edx
mov eax, 0x608f54
mov edx, 0x5cf920
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
lea ecx, [ebx + 0x12]
call fcn.00405920
add esp, 0x10
push 0
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [0x6184f0]
push 1
mov ecx, dword [ecx + 4]
call fcn.004feca0
mov edi, eax
lea ecx, [ebp - 0x85c]
mov dword [ebp - 0x84c], edi
call fcn.00443080
mov byte [ebp - 4], 2
test edi, edi
je 0x4791ec
nop dword [eax]
nop word [eax + eax]
mov edx, dword [0x608f30]
cmp edx, 0x608f30
je 0x47913c
test byte [edx + 0x1c], 4
je 0x47913c
push dword [edi + 0x3c90]
cmp dword [0x608f68], 8
lea eax, [edi + 8]
push dword [edi]
mov ecx, 0x608f54
cmovae ecx, dword [0x608f54]
push eax
push ecx
push dword [edx + 0x14]
mov ecx, 0x13
push dword [edx + 0x10]
mov edx, 0x5cf920
call fcn.00478ad0
add esp, 0x18
mov ecx, dword [0x6184f4]
mov edi, 1
mov dword [ebp - 0x850], 0x63
mov ecx, dword [ecx + 4]
call fcn.0050a840
mov esi, dword [ebp - 0x84c]
mov ecx, dword [esi + 0x3c90]
or ecx, eax
mov dword [ebp - 0x858], ecx
nop dword [eax]
test edi, ecx
je 0x4791af
lea eax, [ebp - 0x850]
push eax
push edi
lea ecx, [ebp - 0x85c]
call fcn.00446490
mov ecx, dword [ebp - 0x864]
lea eax, [ebp - 0x860]
push eax
lea eax, [esi + 8]
push eax
push dword [ebp - 0x850]
call fcn.0047a2e0
mov ebx, eax
test ebx, ebx
js 0x4791b6
mov ecx, dword [ebp - 0x858]
add edi, edi
cmp edi, 0x40
jbe 0x479170
mov ecx, dword [0x6184f8]
push 1
push 0x3f1
call fcn.004b3160
mov ecx, dword [0x6184f0]
mov ecx, dword [ecx + 4]
call fcn.004fee60
mov edi, eax
mov dword [ebp - 0x84c], edi
test edi, edi
jne 0x4790f0
mov esi, dword [ebp - 0x854]
mov edx, dword [0x6184f0]
xor ecx, ecx
mov dword [ebp - 0x868], ecx
mov eax, dword [edx + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x86c], eax
test eax, eax
jle 0x479360
xor esi, esi
mov dword [ebp - 0x858], esi
nop dword [eax]
mov eax, dword [edx + 4]
mov edx, dword [eax + 4]
cmp ecx, dword [edx + 4]
jge 0x47923f
lea edi, [edx + 0x5c7264]
mov dword [eax + 0x14], 1
mov dword [eax + 8], ecx
add edi, esi
jmp 0x479241
xor edi, edi
mov dword [ebp - 0x84c], edi
mov edx, dword [0x608f30]
cmp edx, 0x608f30
je 0x479293
test byte [edx + 0x1c], 4
je 0x479293
push dword [edi + 0x3c90]
cmp dword [0x608f68], 8
lea eax, [edi + 8]
push dword [edi]
mov ecx, 0x608f54
cmovae ecx, dword [0x608f54]
push eax
push ecx
push dword [edx + 0x14]
mov ecx, 0x14
push dword [edx + 0x10]
mov edx, 0x5cf920
call fcn.00478ad0
add esp, 0x18
cmp dword [edi + 4], 3
jne 0x47931c
mov ecx, dword [0x6184f4]
mov edi, 1
mov dword [ebp - 0x850], 0x63
mov ecx, dword [ecx + 4]
call fcn.0050a840
mov esi, dword [ebp - 0x84c]
mov ecx, dword [esi + 0x3c90]
or ecx, eax
mov dword [ebp - 0x84c], ecx
nop
test edi, ecx
je 0x47930f
lea eax, [ebp - 0x850]
push eax
push edi
lea ecx, [ebp - 0x85c]
call fcn.00446490
mov ecx, dword [ebp - 0x864]
lea eax, [ebp - 0x860]
push eax
lea eax, [esi + 8]
push eax
push dword [ebp - 0x850]
call fcn.0047a2e0
mov ebx, eax
test ebx, ebx
js 0x479316
mov ecx, dword [ebp - 0x84c]
add edi, edi
cmp edi, 0x40
jbe 0x4792d0
mov esi, dword [ebp - 0x858]
mov ecx, dword [0x6184f8]
push 1
push 0x3f1
call fcn.004b3160
mov ecx, dword [ebp - 0x868]
add esi, 0x413c
inc ecx
mov dword [ebp - 0x858], esi
mov dword [ebp - 0x868], ecx
cmp ecx, dword [ebp - 0x86c]
jge 0x47935a
mov edx, dword [0x6184f0]
jmp 0x479220
mov esi, dword [ebp - 0x854]
mov eax, dword [0x6184f4]
mov ecx, dword [eax + 8]
call fcn.00532480
mov ecx, dword [0x6184f8]
push 1
push 0x3f1
call fcn.004b3160
mov byte [ebp - 0x844], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4793c7
test byte [ecx + 0x1c], 1
je 0x4793c7
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5cf920
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x15
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x85c]
call fcn.00443150
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4793ee
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x848]
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
push 0x80004005
call fcn.004013a0
int3