Function at 0x418220
Capabilities:
Get common file path
Get startup folder
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x46cce4
mov eax, dword fs:[0]
push eax
mov eax, 0x17f8
call fcn.0043e280
mov eax, dword [0x48cc50]
xor eax, esp
mov dword [esp + 0x17f4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48cc50]
xor eax, esp
push eax
lea eax, [esp + 0x180c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x181c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
call fcn.004181e0
mov edx, 0x67
mov word [esp + 0x5c], dx
mov edx, 0x74
mov word [esp + 0x62], dx
mov eax, 0x52
mov word [esp + 0x58], ax
mov edx, 0x53
mov word [esp + 0x68], dx
mov eax, 0x69
mov word [esp + 0x5e], ax
mov eax, 0x65
mov word [esp + 0x64], ax
mov word [esp + 0x6a], ax
mov word [esp + 0x70], ax
mov edx, 0x76
mov word [esp + 0x6e], dx
xor edx, edx
mov word [esp + 0x74], dx
mov eax, 0x64
mov word [esp + 0x78], ax
mov ecx, 0x65
mov word [esp + 0x5a], cx
mov edx, 0x73
mov word [esp + 0x7c], dx
mov eax, 0x74
mov word [esp + 0x7e], ax
mov ecx, 0x73
mov word [esp + 0x60], cx
mov edx, 0x69
mov word [esp + 0x82], dx
mov ecx, 0x72
mov eax, 0x72
mov word [esp + 0x84], ax
mov word [esp + 0x66], cx
mov word [esp + 0x6c], cx
mov word [esp + 0x72], cx
mov edx, 0x6e
mov word [esp + 0x48], dx
mov eax, 0x6f
mov edx, 0x31
mov ecx, 0x65
mov word [esp + 0x4a], ax
mov eax, edx
mov word [esp + 0x7a], cx
mov ecx, 0x64
push 0x7fe
mov word [esp + 0x56], ax
xor ebp, ebp
mov word [esp + 0x84], cx
xor ecx, ecx
mov word [esp + 0x54], dx
lea eax, [esp + 0x80e]
xor edx, edx
push ebp
push eax
mov word [esp + 0x92], cx
mov word [esp + 0x58], cx
mov word [esp + 0x60], cx
mov word [esp + 0x814], dx
call fcn.0043bdd0
mov edx, 0x64
mov ecx, 0x41
mov eax, edx
mov word [esp + 0x94], cx
mov word [esp + 0x96], dx
mov ecx, 0x2e
mov edx, 0x43
mov word [esp + 0x98], ax
mov word [esp + 0x9a], cx
mov word [esp + 0x9c], dx
mov eax, 0x6f
mov ecx, 0x64
mov edx, 0x65
add esp, 0xc
mov word [esp + 0x92], ax
mov word [esp + 0x94], cx
mov word [esp + 0x96], dx
push ebx
push 0x400
lea ecx, [esp + 0x810]
push ecx
lea edx, [esp + 0x94]
xor eax, eax
push edx
mov word [esp + 0xa8], ax
call dword [0x47228c]
mov esi, eax
call dword [0x472330]
xor eax, eax
cmp esi, ebp
je 0x418870
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x1814], ebp
lea esi, [esp + 0x808]
cmp word [esp + 0x808], bp
je 0x4184e5
push 0x3d
push esi
call fcn.0043e11d
add esp, 8
add eax, 2
push eax
lea ecx, [esp + 0x18]
call fcn.00417c80
lea ecx, [esp + 0x14]
mov byte [esp + 0x1814], 1
call fcn.00417390
lea ecx, [esp + 0x14]
call fcn.00417620
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
call fcn.00417d30
push ebp
push esi
call fcn.0043e11d
add eax, 2
mov esi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x1814], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4184dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp word [esi], bp
jne 0x418465
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], ebp
cmp eax, ebp
jbe 0x418840
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x1814], 2
cmp ecx, eax
jae 0x41885c
mov edx, dword [esp + 0x24]
mov eax, dword [edx + ecx*4]
sub eax, 0x10
push eax
call fcn.00408da0
lea edi, [eax + 0x10]
mov dword [esp + 0x48], edi
push 0x206
lea ecx, [esp + 0x402]
xor eax, eax
push ebp
push ecx
mov byte [esp + 0x1824], 3
mov word [esp + 0x408], ax
call fcn.0043bdd0
mov edx, dword [esp + 0x30]
mov esi, dword [0x4722bc]
add esp, 0x10
push edx
push 0x104
lea eax, [esp + 0x400]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x68]
push edx
push edi
call esi
lea ecx, [esp + 0x48]
lea eax, [esp + 0x3f8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4185a8
cmp dx, bp
je 0x4185a4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4185a8
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x418582
xor eax, eax
jmp 0x4185ad
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
cmp eax, ebp
setne cl
push 0x206
lea eax, [esp + 0x1f6]
xor edx, edx
push ebp
push eax
mov word [esp + 0x1fc], dx
mov dword [esp + 0x44], ecx
call fcn.0043bdd0
push 0x206
lea edx, [esp + 0x612]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x618], cx
call fcn.0043bdd0
mov eax, dword [esp + 0x38]
add esp, 0x18
push eax
push 0x104
lea ecx, [esp + 0x608]
push ecx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x88]
push eax
push edi
call esi
lea ecx, [esp + 0x50]
lea eax, [esp + 0x600]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x418648
cmp dx, bp
je 0x418644
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x418648
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x418622
xor eax, eax
jmp 0x41864d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x41869c
mov ecx, 0x473280
lea eax, [esp + 0x600]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x418686
cmp dx, bp
je 0x418682
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x418686
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x418660
xor eax, eax
jmp 0x41868b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x41869c
push ebp
push 0x24
lea ecx, [esp + 0x1f8]
push ecx
jmp 0x4186bc
push ebp
cmp dword [esp + 0x1824], ebp
je 0x4186b2
push 0x29
lea edx, [esp + 0x1f8]
push edx
jmp 0x4186bc
push 0x25
lea eax, [esp + 0x1f8]
push eax
push ebp
call dword [0x4723bc]
lea ecx, [esp + 0x1f0]
push ecx
lea ecx, [esp + 0x18]
call fcn.00417c80
push 1
push 0x47dbf4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x181c], 4
call fcn.00401e70
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.00401e70
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x40]
call fcn.0040ca90
push 0x48f228
lea ecx, [esp + 0x20]
call fcn.00417c80
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x24]
mov byte [esp + 0x181c], 5
call fcn.00401e70
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x44]
call fcn.0040ca90
mov esi, dword [ebx + 4]
mov ecx, dword [esp + 0x1820]
mov dword [esp + 0x34], ecx
cmp esi, dword [ebx + 8]
jb 0x418760
lea edx, [esi + 1]
push edx
mov ecx, ebx
call fcn.004171f0
test al, al
je 0x418866
shl esi, 4
add esi, dword [ebx]
je 0x4187a1
mov eax, dword [esp + 0x1820]
mov ecx, dword [esp + 0x38]
mov dword [esi], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
cmp eax, ebp
je 0x41878c
add eax, 8
push eax
call dword [0x472338]
mov eax, dword [esp + 0x40]
mov dword [esi + 0xc], eax
cmp eax, ebp
je 0x4187a1
add eax, 8
push eax
call dword [0x472338]
mov eax, dword [esp + 0x1c]
inc dword [ebx + 4]
add eax, 0xfffffff0
mov byte [esp + 0x1814], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4187cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x1814], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4187f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x1814], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418818
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x1814], 0
call fcn.00417770
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, eax
jb 0x4184f7
xor ebp, ebp
mov ecx, dword [esp + 0x24]
cmp ecx, ebp
je 0x418eb8
push eax
push ecx
call fcn.004175e0
mov ecx, dword [esp + 0x2c]
jmp 0x418eaf
push 0x80070057
call fcn.00402a40
push 0x8007000e
call fcn.00402a40
mov edx, dword [str.files]
mov ecx, 8
mov esi, str.DestinationDirs
lea edi, [esp + 0x108]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x47318c]
push 0x34
mov dword [esp + 0x174], edx
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], eax
mov dword [esp + 0x134], eax
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], eax
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], eax
mov dword [esp + 0x148], eax
mov eax, dword [0x473188]
lea edx, [esp + 0x180]
push ebp
push edx
mov dword [esp + 0x180], eax
mov dword [esp + 0x184], ecx
call fcn.0043bdd0
mov eax, dword [0x47315c]
mov cx, word [0x473160]
push 0x3e
mov dword [esp + 0xac], eax
lea eax, [esp + 0x1c2]
xor edx, edx
push ebp
push eax
mov word [esp + 0xb8], cx
mov word [esp + 0x1c8], dx
call fcn.0043bdd0
push 0x206
lea edx, [esp + 0x20e]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x214], cx
call fcn.0043bdd0
add esp, 0x24
push ebx
push 0x20
lea eax, [esp + 0x1b8]
push eax
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0x180]
push edx
lea eax, [esp + 0x11c]
push eax
call dword [0x4722bc]
lea ecx, [esp + 0x50]
lea eax, [esp + 0x1b0]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4189a6
cmp dx, bp
je 0x4189a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4189a6
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x418980
xor eax, eax
jmp 0x4189ab
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x4189fc
mov ecx, 0x473280
lea eax, [esp + 0x1b0]
jmp 0x4189c0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4189e6
cmp dx, bp
je 0x4189e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4189e6
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x4189c0
xor eax, eax
jmp 0x4189eb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x4189fc
push ebp
push 0x24
lea ecx, [esp + 0x1f8]
push ecx
jmp 0x418a1c
push ebp
cmp dword [esp + 0x1824], ebp
je 0x418a12
push 0x29
lea edx, [esp + 0x1f8]
push edx
jmp 0x418a1c
push 0x25
lea eax, [esp + 0x1f8]
push eax
push ebp
call dword [0x4723bc]
mov edx, dword [0x47314c]
mov ebx, 7
mov ecx, ebx
mov esi, str.DefaultInstall
lea edi, [esp + 0x148]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [str.CopyFiles]
xor eax, eax
movsw word es:[edi], word [esi]
mov dword [esp + 0x166], eax
mov dword [esp + 0x16a], eax
mov word [esp + 0x16e], ax
mov eax, dword [0x473150]
mov dword [esp + 0xd4], eax
xor eax, eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], eax
mov eax, dword [str.files]
mov dword [esp + 0xa4], eax
xor eax, eax
mov dword [esp + 0xcc], ecx
mov ecx, dword [0x473154]
mov dword [esp + 0xd0], edx
mov edx, dword [0x473158]
push 0x800
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xdc], ecx
mov ecx, dword [0x473188]
mov dword [esp + 0xe0], edx
mov edx, dword [0x47318c]
lea eax, [esp + 0x80c]
push ebp
push eax
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], edx
call fcn.0043bdd0
mov esi, dword [esp + 0x2c]
add esp, 0xc
push esi
push 0x400
lea ecx, [esp + 0x810]
push ecx
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x15c]
push ecx
call dword [0x4722bc]
push 0x7fe
lea eax, [esp + 0x100e]
xor edx, edx
push ebp
push eax
mov word [esp + 0x1014], dx
call fcn.0043bdd0
add esp, 0xc
push esi
push 0x400
lea ecx, [esp + 0x1010]
push ecx
lea edx, [esp + 0x814]
push edx
call dword [0x47228c]
mov dword [esp + 0x34], ebp
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x1814], 6
lea esi, [esp + 0x1008]
cmp word [esp + 0x1008], bp
je 0x418c54
push esi
lea ecx, [esp + 0x18]
call fcn.00417c80
lea ecx, [esp + 0x14]
mov byte [esp + 0x1814], bl
call fcn.00417390
lea ecx, [esp + 0x14]
call fcn.00417620
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x38]
call fcn.00417d30
push ebp
push esi
call fcn.0043e11d
add eax, 2
mov esi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x1814], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418c4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp word [esi], bp
jne 0x418be3
mov eax, dword [esp + 0x38]
xor ebx, ebx
cmp eax, ebp
jbe 0x418e9c
mov ebp, dword [esp + 0x1c]
xor edi, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov byte [esp + 0x1814], 8
cmp ebx, eax
jae 0x41885c
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + ebx*4]
sub eax, 0x10
push eax
call fcn.00408da0
lea esi, [eax + 0x10]
mov dword [esp + 0x48], esi
push 0x206
lea eax, [esp + 0x402]
xor edx, edx
push edi
push eax
mov byte [esp + 0x1824], 9
mov word [esp + 0x408], dx
call fcn.0043bdd0
mov ecx, dword [esp + 0x30]
add esp, 0x10
push ecx
push 0x104
lea edx, [esp + 0x400]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x68]
push ecx
push esi
call dword [0x4722bc]
lea ecx, [esp + 0x48]
lea eax, [esp + 0x3f8]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x418d16
cmp dx, di
je 0x418d12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x418d16
add eax, 4
add ecx, 4
cmp dx, di
jne 0x418cf0
xor eax, eax
jmp 0x418d1b
sbb eax, eax
sbb eax, 0xffffffff
xor edx, edx
test eax, eax
setne dl
lea eax, [esp + 0x1f0]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], edx
call fcn.00417c80
push 1
push 0x47dbf4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x181c], 0xa
call fcn.00401e70
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00401e70
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x30]
call fcn.0040ca90
push 0x48f228
lea ecx, [esp + 0x1c]
call fcn.00417c80
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x181c], 0xb
call fcn.00401e70
mov edx, dword [esp + 0x18]
push edx
lea ecx, [esp + 0x34]
call fcn.0040ca90
mov edi, dword [ebp + 4]
mov eax, dword [esp + 0x1820]
mov dword [esp + 0x24], eax
cmp edi, dword [ebp + 8]
jb 0x418dc3
lea ecx, [edi + 1]
push ecx
mov ecx, ebp
call fcn.004171f0
test al, al
je 0x418866
shl edi, 4
add edi, dword [ebp]
je 0x418e05
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1820]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [edi], edx
mov dword [edi + 8], eax
test eax, eax
je 0x418df0
add eax, 8
push eax
call dword [0x472338]
mov eax, dword [esp + 0x30]
mov dword [edi + 0xc], eax
test eax, eax
je 0x418e05
add eax, 8
push eax
call dword [0x472338]
mov eax, dword [esp + 0x18]
inc dword [ebp + 4]
add eax, 0xfffffff0
mov byte [esp + 0x1814], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418e30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x1814], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418e58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x1814], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418e7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1814], 6
call fcn.00417770
mov eax, dword [esp + 0x38]
inc ebx
cmp ebx, eax
jb 0x418c62
xor ebp, ebp
mov ecx, dword [esp + 0x34]
cmp ecx, ebp
je 0x418eb8
push eax
push ecx
call fcn.004175e0
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0043b5a7
add esp, 0xc
mov eax, 1
mov ecx, dword [esp + 0x180c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x17f4]
xor ecx, esp
call fcn.0043aa16
add esp, 0x1804
ret 8