Function at 0x420cb0
Capabilities:
Get common file path
Get startup folder
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x473184
mov eax, dword fs:[0]
push eax
mov eax, 0x17f8
call fcn.00444350
mov eax, dword [0x492afc]
xor eax, esp
mov dword [esp + 0x17f4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x492afc]
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.00420c70
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.00443d20
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 [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
cmp esi, ebp
je 0x421300
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 0x420f75
push 0x3d
push esi
call fcn.004461d7
add esp, 8
add eax, 2
push eax
lea ecx, [esp + 0x18]
call fcn.0041e050
lea ecx, [esp + 0x14]
mov byte [esp + 0x1814], 1
call fcn.00420190
lea ecx, [esp + 0x14]
call fcn.004202c0
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
call fcn.004207c0
push ebp
push esi
call fcn.004461d7
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 0x420f6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp word [esi], bp
jne 0x420ef5
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], ebp
cmp eax, ebp
jbe 0x4212d0
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 0x4212ec
mov edx, dword [esp + 0x24]
mov eax, dword [edx + ecx*4]
sub eax, 0x10
push eax
call fcn.0040a760
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.00443d20
mov edx, dword [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
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 0x421038
cmp dx, bp
je 0x421034
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421038
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x421012
xor eax, eax
jmp 0x42103d
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.00443d20
push 0x206
lea edx, [esp + 0x612]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x618], cx
call fcn.00443d20
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 0x4210d8
cmp dx, bp
je 0x4210d4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4210d8
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x4210b2
xor eax, eax
jmp 0x4210dd
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x42112c
mov ecx, 0x4826e0
lea eax, [esp + 0x600]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421116
cmp dx, bp
je 0x421112
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421116
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x4210f0
xor eax, eax
jmp 0x42111b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x42112c
push ebp
push 0x24
lea ecx, [esp + 0x1f8]
push ecx
jmp 0x42114c
push ebp
cmp dword [esp + 0x1824], ebp
je 0x421142
push 0x29
lea edx, [esp + 0x1f8]
push edx
jmp 0x42114c
push 0x25
lea eax, [esp + 0x1f8]
push eax
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x1f0]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041e050
push 1
push 0x482c58
lea ecx, [esp + 0x1c]
mov byte [esp + 0x181c], 4
call fcn.00401f70
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.00401f70
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x40]
call fcn.00402410
push 0x4956b0
lea ecx, [esp + 0x20]
call fcn.0041e050
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x24]
mov byte [esp + 0x181c], 5
call fcn.00401f70
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x44]
call fcn.00402410
mov esi, dword [ebx + 4]
mov ecx, dword [esp + 0x1820]
mov dword [esp + 0x34], ecx
cmp esi, dword [ebx + 8]
jb 0x4211f0
lea edx, [esi + 1]
push edx
mov ecx, ebx
call fcn.00420010
test al, al
je 0x4212f6
shl esi, 4
add esi, dword [ebx]
je 0x421231
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 0x42121c
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x40]
mov dword [esi + 0xc], eax
cmp eax, ebp
je 0x421231
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
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 0x42125c
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 0x421284
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 0x4212a8
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.00420330
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, eax
jb 0x420f87
xor ebp, ebp
mov ecx, dword [esp + 0x24]
cmp ecx, ebp
je 0x421948
push eax
push ecx
call fcn.00420280
mov ecx, dword [esp + 0x2c]
jmp 0x42193f
push 0x80070057
call fcn.00402bd0
push 0x8007000e
call fcn.00402bd0
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 [0x479818]
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 [0x479814]
lea edx, [esp + 0x180]
push ebp
push edx
mov dword [esp + 0x180], eax
mov dword [esp + 0x184], ecx
call fcn.00443d20
mov eax, dword [0x4797e8]
mov cx, word [0x4797ec]
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.00443d20
push 0x206
lea edx, [esp + 0x20e]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x214], cx
call fcn.00443d20
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 [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x50]
lea eax, [esp + 0x1b0]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421436
cmp dx, bp
je 0x421432
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421436
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x421410
xor eax, eax
jmp 0x42143b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x42148c
mov ecx, 0x4826e0
lea eax, [esp + 0x1b0]
jmp 0x421450
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421476
cmp dx, bp
je 0x421472
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421476
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x421450
xor eax, eax
jmp 0x42147b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x42148c
push ebp
push 0x24
lea ecx, [esp + 0x1f8]
push ecx
jmp 0x4214ac
push ebp
cmp dword [esp + 0x1824], ebp
je 0x4214a2
push 0x29
lea edx, [esp + 0x1f8]
push edx
jmp 0x4214ac
push 0x25
lea eax, [esp + 0x1f8]
push eax
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edx, dword [0x4797d8]
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 [0x4797dc]
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 [0x4797e0]
mov dword [esp + 0xd0], edx
mov edx, dword [0x4797e4]
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 [0x479814]
mov dword [esp + 0xe0], edx
mov edx, dword [0x479818]
lea eax, [esp + 0x80c]
push ebp
push eax
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], edx
call fcn.00443d20
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 [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x7fe
lea eax, [esp + 0x100e]
xor edx, edx
push ebp
push eax
mov word [esp + 0x1014], dx
call fcn.00443d20
add esp, 0xc
push esi
push 0x400
lea ecx, [esp + 0x1010]
push ecx
lea edx, [esp + 0x814]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
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 0x4216e4
push esi
lea ecx, [esp + 0x18]
call fcn.0041e050
lea ecx, [esp + 0x14]
mov byte [esp + 0x1814], bl
call fcn.00420190
lea ecx, [esp + 0x14]
call fcn.004202c0
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x38]
call fcn.004207c0
push ebp
push esi
call fcn.004461d7
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 0x4216db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp word [esi], bp
jne 0x421673
mov eax, dword [esp + 0x38]
xor ebx, ebx
cmp eax, ebp
jbe 0x42192c
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 0x4212ec
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + ebx*4]
sub eax, 0x10
push eax
call fcn.0040a760
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.00443d20
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 [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x48]
lea eax, [esp + 0x3f8]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4217a6
cmp dx, di
je 0x4217a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4217a6
add eax, 4
add ecx, 4
cmp dx, di
jne 0x421780
xor eax, eax
jmp 0x4217ab
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.0041e050
push 1
push 0x482c58
lea ecx, [esp + 0x1c]
mov byte [esp + 0x181c], 0xa
call fcn.00401f70
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00401f70
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x30]
call fcn.00402410
push 0x4956b0
lea ecx, [esp + 0x1c]
call fcn.0041e050
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x181c], 0xb
call fcn.00401f70
mov edx, dword [esp + 0x18]
push edx
lea ecx, [esp + 0x34]
call fcn.00402410
mov edi, dword [ebp + 4]
mov eax, dword [esp + 0x1820]
mov dword [esp + 0x24], eax
cmp edi, dword [ebp + 8]
jb 0x421853
lea ecx, [edi + 1]
push ecx
mov ecx, ebp
call fcn.00420010
test al, al
je 0x4212f6
shl edi, 4
add edi, dword [ebp]
je 0x421895
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 0x421880
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x30]
mov dword [edi + 0xc], eax
test eax, eax
je 0x421895
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
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 0x4218c0
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 0x4218e8
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 0x42190c
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.00420330
mov eax, dword [esp + 0x38]
inc ebx
cmp ebx, eax
jb 0x4216f2
xor ebp, ebp
mov ecx, dword [esp + 0x34]
cmp ecx, ebp
je 0x421948
push eax
push ecx
call fcn.00420280
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0044335c
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.004424e7
add esp, 0x1804
ret 8