Function at 0x46de70
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48405b
push eax
mov edx, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x7a8
or ecx, 0xffffffff
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, edx
lea ebx, [esp + 0x4b4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [edx + 1]
and ecx, 3
cmp al, 0x3a
rep movsb byte es:[edi], byte [esi]
je 0x46e034
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
mov bl, 0x5c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x34]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x46df15
lea esi, [esp + ecx + 0x34]
mov dl, byte [esi]
cmp dl, bl
mov byte [esp + eax + 0x5b4], dl
jne 0x46df0f
cmp eax, 2
jge 0x46df15
inc eax
dec esi
cmp eax, ecx
jl 0x46defd
sub ecx, eax
mov edx, ecx
test edx, edx
jle 0x46df36
mov ebp, ecx
lea esi, [esp + 0x34]
lea edi, [esp + 0x234]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov byte [esp + edx + 0x234], 0
test eax, eax
jle 0x46df65
lea esi, [esp + edx + 0x35]
mov dl, byte [esi + ecx]
cmp dl, bl
je 0x46df58
mov byte [esp + ecx + 0x5b4], dl
jne 0x46df60
mov byte [esp + ecx + 0x5b4], 0
inc ecx
cmp ecx, eax
jl 0x46df48
mov byte [esp + eax + 0x5b4], 0
mov al, byte [esp + 0x236]
cmp al, bl
je 0x46df87
mov byte [esp + 0x236], bl
mov byte [esp + 0x237], 0
lea edi, [esp + 0x234]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
test ebp, ebp
jle 0x46dfad
cmp byte [esp + eax + 0x234], 0x3a
je 0x46dfad
inc eax
cmp eax, ebp
jl 0x46df9e
mov edx, ebp
sub edx, eax
lea ecx, [edx + 1]
test ecx, ecx
jle 0x46dfd1
mov ebx, ecx
lea esi, [esp + eax + 0x233]
lea edi, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp eax, ebp
mov byte [esp + edx + 0x35], 0
jne 0x46e007
lea eax, [esp + 0x434]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x434]
lea edx, [esp + 0x34]
push ecx
push 0x48b2f4
push edx
call fcn.0047a8f8
add esp, 0xc
lea eax, [esp + 0x5b4]
lea ecx, [esp + 0x34]
push eax
push ecx
lea edx, [esp + 0x4bc]
push 0x4966e0
push edx
call fcn.0047a8f8
add esp, 0x10
mov dword [esp + 0x7c0], 0xffffffff
lea eax, [esp + 0x4b4]
lea ecx, [esp + 0x14]
push eax
call fcn.004020d0
lea ecx, [esp + 0x14]
mov dword [esp + 0x7c0], 2
call fcn.004022a0
cmp eax, 1
jbe 0x46e20c
lea ecx, [esp + 0x14]
xor ebp, ebp
call fcn.00402160
mov edi, dword [esp + 0x7cc]
push eax
push 0x48b2f4
push edi
mov dword [esp + 0x1c], eax
call fcn.0047a8f8
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x14]
call fcn.00402100
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 2
jle 0x46e0dd
cmp ebx, 3
jge 0x46e0d8
cmp ebx, 1
je 0x46e0d8
lea ecx, [esp + 0x14]
call fcn.00402100
mov ecx, dword [esp + 0x7cc]
push eax
push 0x48b2f4
push ecx
call fcn.0047a8f8
add esp, 0xc
mov ebp, 1
cmp ebx, 3
jge 0x46e103
cmp esi, 3
jge 0x46e103
lea ecx, [esp + 0x14]
mov dword [esp + 0x7c0], 0xffffffff
call fcn.004020f0
xor ax, ax
jmp 0x46e270
cmp ebx, 2
jle 0x46e109
inc ebp
lea ecx, [esp + 0x14]
call fcn.00402240
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jle 0x46e124
inc ebp
lea ecx, [esp + 0x14]
call fcn.00402210
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jle 0x46e13f
inc ebp
lea ecx, [esp + 0x14]
call fcn.004021e0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jle 0x46e15a
inc ebp
lea ecx, [esp + 0x14]
call fcn.00402270
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jle 0x46e175
inc ebp
lea ecx, [esp + 0x14]
call fcn.004021b0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jle 0x46e1af
lea ecx, [esp + 0x14]
call fcn.004021b0
mov edx, dword [esp + 0x7d0]
push eax
push 0x48b2f4
push edx
call fcn.0047a8f8
add esp, 0xc
inc ebp
lea ecx, [esp + 0x14]
call fcn.00402130
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jle 0x46e1f3
cmp ebx, 1
je 0x46e1f2
lea ecx, [esp + 0x14]
call fcn.00402130
mov ecx, dword [esp + 0x7cc]
push eax
mov eax, dword [esp + 0x14]
push eax
push 0x491a74
push ecx
call fcn.0047a8f8
add esp, 0x10
inc ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x7c0], 0xffffffff
call fcn.004020f0
mov ax, bp
jmp 0x46e270
mov edi, 0x491b90
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x7c0], 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x7cc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4a0930
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x7d0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.004020f0
or ax, 0xffff
mov ecx, dword [esp + 0x7b8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x7b4
ret