Function at 0x4ecb70
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7d18
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2b0
mov eax, dword [0x634254]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2b8], edx
mov dword [ebp - 0x2bc], ecx
push 0x104
lea eax, [ebp - 0x220]
mov dword [ebp - 0x2b4], 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
xor eax, eax
mov dword [ebp - 0x250], 0
lea esi, [ebp - 0x220]
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
lea ecx, [esi + 2]
mov word [ebp - 0x250], ax
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4ecc10
sub esi, ecx
mov eax, 0xa
sar esi, 1
cmp esi, 7
ja 0x4ecc57
mov dword [ebp - 0x240], esi
lea eax, [ebp - 0x220]
add esi, esi
push esi
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.00570d00
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x250], ax
jmp 0x4ecd17
cmp esi, 0x7ffffffe
ja 0x4ed69b
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4ecc7c
mov edi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4ecc98
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x4ed737
add eax, eax
cmp eax, 0x1000
jb 0x4eccc1
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4ed737
push ecx
call fcn.005a1c68
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4ed6a0
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4ecce0
test eax, eax
je 0x4eccde
push eax
call fcn.005a1c68
add esp, 4
mov dword [ebp - 0x288], eax
test eax, eax
je 0x4ed6b1
jmp 0x4ecce6
xor eax, eax
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x240], esi
lea ecx, [ebp - 0x220]
add esi, esi
mov dword [ebp - 0x23c], edi
push esi
push ecx
push eax
call fcn.00570780
mov eax, dword [ebp - 0x288]
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x250], eax
mov word [esi + eax], cx
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x268], 0
push 0x20
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
call fcn.005a1c68
mov esi, eax
add esp, 4
test esi, esi
je 0x4ed6c2
movups xmm0, xmmword [str.regsvr32.exe]
xor eax, eax
mov dword [ebp - 0x258], 0xc
mov dword [ebp - 0x254], 0xf
movups xmmword [esi], xmm0
mov dword [ebp - 0x268], esi
movq xmm0, qword [0x60b46c]
movq qword [esi + 0x10], xmm0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x240]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
mov dword [ebp - 0x2b4], 1
test ecx, ecx
jne 0x4ece06
push 0x20
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4ed6d3
movups xmm0, xmmword [esi]
xor ecx, ecx
mov dword [ebp - 0x228], 0xc
mov dword [ebp - 0x224], 0xf
movups xmmword [eax], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [eax + 0x10], xmm0
mov word [eax + 0x18], cx
jmp 0x4ed462
cmp dword [ebp - 0x23c], 8
lea edi, [ebp - 0x250]
mov eax, ecx
cmovae edi, dword [ebp - 0x250]
mov dword [ebp - 0x284], edi
mov dword [ebp - 0x298], eax
cmp eax, 7
ja 0x4ece7a
lea esi, [ecx + ecx]
mov dword [ebp - 0x228], ecx
push esi
lea eax, [ebp - 0x238]
push edi
push eax
call fcn.00570d00
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x238], ax
mov edx, dword [ebp - 0x224]
mov esi, dword [ebp - 0x228]
mov edi, dword [ebp - 0x238]
mov dword [ebp - 0x294], edx
mov dword [ebp - 0x298], esi
mov dword [ebp - 0x28c], edi
jmp 0x4ecf5f
cmp eax, 0x7ffffffe
ja 0x4ed6e4
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4ecea4
mov esi, SysReAllocString
mov ecx, 0xfffffffe
mov dword [ebp - 0x294], esi
jmp 0x4ecece
cmp esi, 0xa
mov ecx, 0xa
cmovb esi, ecx
mov dword [ebp - 0x294], esi
lea ecx, [esi + 1]
cmp ecx, 0x7fffffff
ja 0x4ed737
add ecx, ecx
cmp ecx, 0x1000
jb 0x4ecefb
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x4ed737
push eax
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4ed6e9
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
mov eax, dword [ebp - 0x298]
jmp 0x4ecf22
test ecx, ecx
je 0x4ecf20
push ecx
call fcn.005a1c68
mov edi, eax
add esp, 4
mov dword [ebp - 0x28c], edi
test edi, edi
je 0x4ed6fa
mov eax, dword [ebp - 0x298]
jmp 0x4ecf28
xor edi, edi
mov dword [ebp - 0x28c], edi
mov dword [ebp - 0x224], esi
lea esi, [eax + eax]
push esi
push dword [ebp - 0x284]
mov dword [ebp - 0x228], eax
push edi
call fcn.00570780
mov edx, dword [ebp - 0x294]
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x238], edi
mov word [esi + edi], ax
mov esi, dword [ebp - 0x298]
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
mov ecx, dword [ebp - 0x240]
cmovae eax, dword [ebp - 0x250]
mov dword [ebp - 0x284], 0x2f
mov dword [ebp - 0x29c], 0x5c
movzx eax, word [eax + ecx*2 - 2]
mov ecx, SysReAllocString
mov dword [ebp - 0x290], ecx
cmp word [ebp - 0x284], ax
je 0x4ed1cc
cmp word [ebp - 0x29c], ax
je 0x4ed1cc
mov eax, edx
sub eax, esi
cmp eax, 1
jb 0x4ed00e
cmp edx, 8
lea eax, [ebp - 0x238]
mov edx, dword [ebp - 0x29c]
lea ecx, [esi + 1]
cmovae eax, edi
mov dword [ebp - 0x228], ecx
mov word [eax + esi*2], dx
xor edx, edx
mov word [eax + ecx*2], dx
mov edx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x228]
mov edi, dword [ebp - 0x238]
mov dword [ebp - 0x294], edx
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x28c], edi
jmp 0x4ed1d2
mov eax, ecx
mov dword [ebp - 0x284], esi
sub eax, esi
cmp eax, 1
jb 0x4ed70b
lea eax, [esi + 1]
mov dword [ebp - 0x2a8], edx
mov esi, eax
mov dword [ebp - 0x298], eax
or esi, 7
cmp esi, ecx
jbe 0x4ed048
mov esi, ecx
mov eax, 0xfffffffe
mov dword [ebp - 0x294], esi
jmp 0x4ed08f
mov eax, dword [ebp - 0x290]
mov ecx, edx
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x4ed06a
mov esi, SysReAllocString
mov eax, 0xfffffffe
mov dword [ebp - 0x294], esi
jmp 0x4ed08f
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
mov dword [ebp - 0x294], esi
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x4ed737
add eax, eax
cmp eax, 0x1000
jb 0x4ed0bc
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4ed737
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4ed710
mov edx, dword [ebp - 0x2a8]
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x4ed0e3
test eax, eax
je 0x4ed0e1
push eax
call fcn.005a1c68
mov ecx, eax
add esp, 4
mov dword [ebp - 0x288], ecx
test ecx, ecx
je 0x4ed721
mov edx, dword [ebp - 0x2a8]
jmp 0x4ed0e9
xor ecx, ecx
mov dword [ebp - 0x288], ecx
mov eax, dword [ebp - 0x298]
mov dword [ebp - 0x224], esi
mov esi, dword [ebp - 0x284]
add esi, esi
mov dword [ebp - 0x228], eax
lea eax, [ecx + eax*2]
mov dword [ebp - 0x284], eax
push esi
lea edi, [esi + ecx]
mov dword [ebp - 0x2a0], edi
mov edi, dword [ebp - 0x28c]
cmp edx, 8
jb 0x4ed18e
push edi
push ecx
call fcn.00570780
mov eax, dword [ebp - 0x2a0]
add esp, 0xc
mov ecx, dword [ebp - 0x29c]
mov word [eax], cx
xor ecx, ecx
mov eax, dword [ebp - 0x284]
mov word [eax], cx
mov eax, edi
mov ecx, dword [ebp - 0x2a8]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4ed170
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ed732
push ecx
push edi
call fcn.0056d0c8
mov edi, dword [ebp - 0x288]
add esp, 8
mov dword [ebp - 0x28c], edi
mov dword [ebp - 0x238], edi
jmp 0x4ed1d2
lea eax, [ebp - 0x238]
push eax
push ecx
call fcn.00570780
mov eax, dword [ebp - 0x2a0]
add esp, 0xc
mov edx, dword [ebp - 0x29c]
xor ecx, ecx
mov edi, dword [ebp - 0x288]
mov dword [ebp - 0x28c], edi
mov word [eax], dx
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x238], edi
mov word [eax], cx
jmp 0x4ed1d8
mov edi, dword [ebp - 0x28c]
mov edx, dword [ebp - 0x29c]
cmp dword [ebp - 0x254], 8
lea eax, [ebp - 0x268]
mov ecx, 0x2f
mov dword [ebp - 0x284], 0
cmovae eax, dword [ebp - 0x268]
movzx eax, word [eax]
cmp cx, ax
je 0x4ed208
cmp dx, ax
jne 0x4ed212
mov dword [ebp - 0x284], 1
cmp dword [ebp - 0x254], 8
lea edx, [ebp - 0x268]
mov eax, dword [ebp - 0x258]
cmovae edx, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x284]
mov esi, dword [ebp - 0x294]
lea edx, [edx + eax*2]
lea eax, [ebp - 0x268]
cmovae eax, dword [ebp - 0x268]
lea eax, [eax + ecx*2]
mov ecx, dword [ebp - 0x298]
sub edx, eax
mov dword [ebp - 0x2a8], eax
mov eax, esi
sar edx, 1
sub eax, ecx
mov dword [ebp - 0x284], edx
cmp edx, eax
ja 0x4ed2a7
cmp dword [ebp - 0x294], 8
lea esi, [ebp - 0x238]
lea eax, [edx + edx]
cmovae esi, dword [ebp - 0x28c]
lea edi, [edx + ecx]
push eax
push dword [ebp - 0x2a8]
mov dword [ebp - 0x228], edi
lea ecx, [esi + ecx*2]
push ecx
call fcn.00570d00
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x4ed468
mov eax, dword [ebp - 0x290]
sub eax, ecx
cmp eax, edx
jb 0x4ed73c
lea eax, [edx + ecx]
mov edx, eax
mov dword [ebp - 0x2a0], eax
or edx, 7
cmp edx, 0x7ffffffe
jbe 0x4ed2df
mov eax, SysReAllocString
mov dword [ebp - 0x288], eax
mov eax, 0xfffffffe
jmp 0x4ed327
mov eax, esi
shr eax, 1
sub dword [ebp - 0x290], eax
cmp esi, dword [ebp - 0x290]
jbe 0x4ed303
mov eax, SysReAllocString
mov dword [ebp - 0x288], eax
mov eax, 0xfffffffe
jmp 0x4ed327
add eax, esi
cmp edx, eax
cmovb edx, eax
mov dword [ebp - 0x288], edx
lea eax, [edx + 1]
cmp eax, 0x7fffffff
ja 0x4ed737
add eax, eax
cmp eax, 0x1000
jb 0x4ed356
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4ed737
push ecx
call fcn.005a1c68
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4ed741
mov edx, dword [ebp - 0x288]
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4ed37b
test eax, eax
je 0x4ed379
push eax
call fcn.005a1c68
add esp, 4
mov dword [ebp - 0x290], eax
test eax, eax
je 0x4ed752
mov edx, dword [ebp - 0x288]
jmp 0x4ed381
xor eax, eax
mov dword [ebp - 0x290], eax
mov ecx, dword [ebp - 0x2a0]
mov dword [ebp - 0x228], ecx
mov ecx, dword [ebp - 0x298]
add ecx, ecx
mov dword [ebp - 0x224], edx
push ecx
lea edx, [eax + ecx]
mov dword [ebp - 0x288], edx
mov edx, dword [ebp - 0x284]
add edx, edx
mov dword [ebp - 0x284], edx
mov edx, dword [ebp - 0x2a0]
lea edx, [eax + edx*2]
mov dword [ebp - 0x2a0], edx
cmp esi, 8
jb 0x4ed427
push edi
push eax
call fcn.00570780
add esp, 0xc
push dword [ebp - 0x284]
push dword [ebp - 0x2a8]
push dword [ebp - 0x288]
call fcn.00570780
mov eax, dword [ebp - 0x2a0]
lea esi, [esi*2 + 2]
xor ecx, ecx
add esp, 0xc
mov word [eax], cx
mov eax, edi
cmp esi, 0x1000
jb 0x4ed41b
mov edi, dword [edi - 4]
add esi, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ed763
push esi
push edi
call fcn.0056d0c8
add esp, 8
jmp 0x4ed45c
lea ecx, [ebp - 0x238]
push ecx
push eax
call fcn.00570780
add esp, 0xc
push dword [ebp - 0x284]
push dword [ebp - 0x2a8]
push dword [ebp - 0x288]
call fcn.00570780
mov eax, dword [ebp - 0x2a0]
add esp, 0xc
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x238], eax
mov edx, dword [ebp - 0x23c]
cmp edx, 8
jb 0x4ed4a8
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ed49e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ed768
push edx
push ecx
call fcn.0056d0c8
add esp, 8
movups xmm0, xmmword [ebp - 0x238]
movups xmmword [ebp - 0x250], xmm0
movq xmm0, qword [ebp - 0x228]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x254]
movq qword [ebp - 0x240], xmm0
cmp edx, 8
jb 0x4ed50a
mov ecx, dword [ebp - 0x268]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ed500
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ed768
push edx
push ecx
call fcn.0056d0c8
add esp, 8
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
cmovae eax, dword [ebp - 0x250]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ed63d
xor eax, eax
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 7
mov word [ebp - 0x280], ax
push 3
push 0x61472c
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 3
call fcn.00407684
cmp dword [ebp - 0x2b8], 0
jne 0x4ed585
push 4
push str.__u
lea ecx, [ebp - 0x280]
call fcn.004092f8
push 2
push 0x60b624
lea ecx, [ebp - 0x280]
call fcn.004092f8
mov ecx, dword [ebp - 0x2bc]
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x4ed5a7
mov eax, dword [ecx]
push dword [ecx + 0x10]
lea ecx, [ebp - 0x280]
push eax
call fcn.004092f8
push 1
push 0x60a05c
lea ecx, [ebp - 0x280]
call fcn.004092f8
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x250]
push 0
push eax
call fcn.004e7490
mov edx, dword [ebp - 0x26c]
add esp, 0xc
cmp edx, 8
jb 0x4ed620
mov ecx, dword [ebp - 0x280]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ed616
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ed76d
push edx
push ecx
call fcn.0056d0c8
add esp, 8
xor eax, eax
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 7
mov word [ebp - 0x280], ax
mov edx, dword [ebp - 0x23c]
cmp edx, 8
jb 0x4ed67d
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ed673
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ed76d
push edx
push ecx
call fcn.0056d0c8
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0056d855
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004072dc
push 0x630328
lea eax, [ebp - 0x2a9]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x2aa]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x2a1]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x2a1]
push eax
call fcn.0057134b
call fcn.004072dc
push 0x630328
lea eax, [ebp - 0x2ab]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x2ac]
push eax
call fcn.0057134b
call fcn.004072dc
push 0x630328
lea eax, [ebp - 0x2ad]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x2ae]
push eax
call fcn.0057134b
call fcn.0057b201
call fcn.00407541
call fcn.004072dc
push 0x630328
lea eax, [ebp - 0x2af]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x2b0]
push eax
call fcn.0057134b
call fcn.0057b201
call fcn.0057b201
call fcn.0057b201
int3