Function at 0x502bf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b1f0
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x178], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1b4], ebx
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x44], 0
push ecx
mov eax, esp
mov ecx, ebx
mov dword [eax], 0x56697c
call fcn.004d8d10
test al, al
je 0x503713
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], eax
mov word [ebp - 0x44], ax
mov dword [ebp - 0x108], 7
mov dword [ebp - 0x10c], eax
mov word [ebp - 0x11c], ax
mov dword [ebp - 0xa8], 7
mov dword [ebp - 0xac], eax
mov word [ebp - 0xbc], ax
mov dword [ebp - 0x90], 7
mov dword [ebp - 0x94], eax
mov word [ebp - 0xa4], ax
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], eax
mov word [ebp - 0x74], ax
xor esi, esi
mov dword [ebp - 0x188], esi
mov dword [ebp - 0x184], esi
mov dword [ebp - 0x180], esi
mov dword [ebp - 0x138], 7
mov dword [ebp - 0x13c], esi
mov word [ebp - 0x14c], ax
mov dword [ebp - 0xf0], 7
mov dword [ebp - 0xf4], esi
mov word [ebp - 0x104], ax
mov dword [ebp - 0xd8], 7
mov dword [ebp - 0xdc], esi
mov word [ebp - 0xec], ax
mov dword [ebp - 0x78], 7
mov dword [ebp - 0x7c], esi
mov word [ebp - 0x8c], ax
mov dword [ebp - 0xc0], 7
mov dword [ebp - 0xc4], esi
mov word [ebp - 0xd4], ax
push ecx
mov eax, esp
mov byte [ebp - 4], 0xb
mov ecx, ebx
mov dword [eax], 0x567898
lea eax, [ebp - 0x2c]
push eax
call fcn.0040fdb0
mov dword [ebp - 0x16c], eax
lea ecx, [ebp - 0x5c]
cmp ecx, eax
je 0x502dbc
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x502d9a
inc eax
push eax
push dword [ebp - 0x5c]
call fcn.00403010
push dword [ebp - 0x16c]
xor eax, eax
mov dword [ebp - 0x48], 7
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
call fcn.004042c0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x502dd5
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00403010
push ecx
mov eax, esp
mov ecx, ebx
mov dword [eax], 0x5668ec
lea eax, [ebp - 0x2c]
push eax
call fcn.0040fdb0
mov dword [ebp - 0x16c], eax
lea ecx, [ebp - 0x44]
cmp ecx, eax
je 0x502e2a
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x502e08
inc eax
push eax
push dword [ebp - 0x44]
call fcn.00403010
push dword [ebp - 0x16c]
xor eax, eax
mov dword [ebp - 0x30], 7
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
call fcn.004042c0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x502e43
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00403010
push ecx
mov eax, esp
mov ecx, ebx
mov dword [eax], 0x5668fc
lea eax, [ebp - 0x2c]
push eax
call fcn.0040fdb0
push eax
lea ecx, [ebp - 0x11c]
call fcn.004040c0
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x502e78
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00403010
push ecx
mov eax, esp
mov ecx, ebx
mov dword [eax], 0x566d34
lea eax, [ebp - 0x2c]
push eax
call fcn.0040fdb0
push eax
lea ecx, [ebp - 0xbc]
call fcn.004040c0
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x502ead
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00403010
push ecx
mov eax, esp
mov ecx, ebx
mov dword [eax], 0x566d3c
lea eax, [ebp - 0x2c]
push eax
call fcn.0040fdb0
push eax
lea ecx, [ebp - 0xa4]
call fcn.004040c0
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x502ee2
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00403010
push ecx
mov eax, esp
mov ecx, ebx
mov dword [eax], 0x566a9c
lea eax, [ebp - 0x2c]
push eax
call fcn.0040fdb0
push eax
lea ecx, [ebp - 0x74]
call fcn.004040c0
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x502f14
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00403010
push ecx
mov eax, esp
mov ecx, ebx
mov dword [eax], str.installInX86
lea eax, [ebp - 0x2c]
push eax
call fcn.0040fdb0
push eax
lea ecx, [ebp - 0x104]
call fcn.004040c0
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x502f49
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00403010
push ecx
mov eax, esp
mov ecx, ebx
mov dword [eax], str.installInX64
lea eax, [ebp - 0x2c]
push eax
call fcn.0040fdb0
push eax
lea ecx, [ebp - 0xec]
call fcn.004040c0
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x502f7e
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00403010
push ecx
mov eax, esp
mov ecx, ebx
mov dword [eax], str.writePathToRegKey
lea eax, [ebp - 0x2c]
push eax
call fcn.0040fdb0
push eax
lea ecx, [ebp - 0x8c]
call fcn.004040c0
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x502fb3
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00403010
push ecx
mov eax, esp
mov ecx, ebx
mov dword [eax], 0x566e14
lea eax, [ebp - 0x2c]
push eax
call fcn.0040fdb0
push eax
lea ecx, [ebp - 0xd4]
call fcn.004040c0
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x502fe8
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00403010
cmp dword [ebp - 0x4c], 0
sete al
test al, al
jne 0x5030a0
cmp dword [ebp - 0x34], 0
sete al
test al, al
jne 0x5030a0
cmp dword [ebp - 0xac], 0
sete al
test al, al
jne 0x5030a0
cmp dword [ebp - 0xf0], 8
lea eax, [ebp - 0x104]
cmovae eax, dword [ebp - 0x104]
push eax
call fcn.004a65cc
add esp, 4
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0xd8], 8
lea ecx, [ebp - 0xec]
cmovae ecx, dword [ebp - 0xec]
push ecx
call fcn.004a65cc
add esp, 4
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0xc0], 8
lea ecx, [ebp - 0xd4]
cmovae ecx, dword [ebp - 0xd4]
push ecx
call fcn.004a65cc
add esp, 4
mov dword [ebp - 0x168], eax
call fcn.004ccd00
test eax, eax
je 0x503093
cmp dword [ebp - 0x16c], 0
jmp 0x50309a
cmp dword [ebp - 0x174], 0
jne 0x503127
lea ecx, [ebp - 0xd4]
call fcn.00403110
lea ecx, [ebp - 0x8c]
call fcn.00403110
lea ecx, [ebp - 0xec]
call fcn.00403110
lea ecx, [ebp - 0x104]
call fcn.00403110
lea ecx, [ebp - 0x14c]
call fcn.00403110
lea ecx, [ebp - 0x188]
call fcn.0042cdd0
lea ecx, [ebp - 0x74]
call fcn.00403110
lea ecx, [ebp - 0xa4]
call fcn.00403110
lea ecx, [ebp - 0xbc]
call fcn.00403110
lea ecx, [ebp - 0x11c]
call fcn.00403110
lea ecx, [ebp - 0x44]
call fcn.00403110
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
call fcn.00403110
jmp 0x502c52
mov ecx, ebx
call fcn.004d81c0
push ecx
mov eax, esp
mov ecx, ebx
mov dword [eax], 0x567054
call fcn.004d8d10
test al, al
je 0x50328a
mov ecx, ebx
call fcn.004d81c0
lea ecx, [ebp - 0x14c]
call fcn.004434d0
push ecx
mov eax, esp
mov ecx, ebx
mov dword [eax], 0x5678d8
call fcn.004d8d10
test al, al
je 0x50327d
lea ecx, [ebp - 0x19c]
call fcn.00442570
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
push ecx
mov eax, esp
mov byte [ebp - 4], 0xf
mov ecx, ebx
mov dword [eax], 0x5678e8
lea eax, [ebp - 0x164]
push eax
call fcn.0040fdb0
push eax
lea ecx, [ebp - 0x2c]
call fcn.004040c0
lea ecx, [ebp - 0x164]
call fcn.00403110
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x19c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.00402e00
xor eax, eax
mov dword [ebp - 0x120], 7
mov dword [ebp - 0x124], 0
mov word [ebp - 0x134], ax
push ecx
mov eax, esp
mov byte [ebp - 4], 0x10
mov ecx, ebx
mov dword [eax], 0x5678a0
lea eax, [ebp - 0x164]
push eax
call fcn.0040fdb0
push eax
lea ecx, [ebp - 0x134]
call fcn.004040c0
lea ecx, [ebp - 0x164]
call fcn.00403110
cmp dword [ebp - 0x120], 8
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x198]
cmovae eax, dword [ebp - 0x134]
push eax
call fcn.00402e00
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x188]
call fcn.00442f40
lea ecx, [ebp - 0x134]
call fcn.00403110
lea ecx, [ebp - 0x2c]
call fcn.00403110
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0xb
call fcn.00403220
jmp 0x503158
mov ecx, ebx
call fcn.004d8160
mov esi, dword [ebp - 0x188]
mov ecx, ebx
call fcn.004d8160
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
call fcn.004a65cc
add esp, 4
mov dword [ebp - 0x16c], eax
lea ecx, [ebp - 0x174]
mov dword [ebp - 0x174], eax
push ecx
lea ecx, [ebp - 0x194]
push ecx
lea ecx, [edi + 0x424]
call fcn.00442c90
mov eax, dword [ebp - 0x178]
mov edi, dword [ebp - 0x194]
cmp edi, dword [eax + 0x424]
je 0x503686
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
lea ecx, [edi + 0x8c]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.00402e00
cmp dword [ebp - 0xa8], 8
lea eax, [ebp - 0xbc]
lea ecx, [edi + 0x84]
cmovae eax, dword [ebp - 0xbc]
push eax
call fcn.00402e00
cmp dword [ebp - 0x108], 8
lea eax, [ebp - 0x11c]
lea ecx, [edi + 0x88]
cmovae eax, dword [ebp - 0x11c]
push eax
call fcn.00402e00
cmp dword [ebp - 0x60], 8
lea eax, [ebp - 0x74]
lea ecx, [edi + 0x6c]
cmovae eax, dword [ebp - 0x74]
push eax
call fcn.00402e00
cmp dword [ebp - 0x78], 8
lea eax, [ebp - 0x8c]
lea ecx, [edi + 0x7c]
cmovae eax, dword [ebp - 0x8c]
push eax
call fcn.00402e00
mov eax, dword [ebp - 0x168]
mov dword [edi + 0x30], eax
mov eax, dword [0x59fb74]
cmp dword [eax - 0xc], 0
je 0x5033a8
cmp dword [ebp - 0x78], 8
lea eax, [ebp - 0x8c]
lea ecx, [edi + 0x7c]
cmovae eax, dword [ebp - 0x8c]
push eax
call fcn.00402e00
push dword [0x59fb74]
lea ecx, [edi + 0x7c]
push 0x5678bc
call fcn.004072d0
cmp dword [ebp - 0x64], 0
sete al
test al, al
je 0x503403
cmp dword [ebp - 0x90], 8
lea eax, [ebp - 0xa4]
mov esi, dword [ebp - 0x178]
lea ecx, [ebp - 0x1a0]
cmovae eax, dword [ebp - 0xa4]
push eax
lea edx, [esi + 0x438]
call fcn.00401d60
add esp, 4
push eax
lea ecx, [edi + 0x60]
mov byte [ebp - 4], 0x11
call fcn.00401f90
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 0xb
call fcn.00402ed0
jmp 0x5035f2
cmp dword [ebp - 0x60], 8
lea eax, [ebp - 0x74]
mov edx, dword [ebp - 0x178]
lea ecx, [ebp - 0x17c]
cmovae eax, dword [ebp - 0x74]
add edx, 0x438
push eax
call fcn.00401d60
add esp, 4
push 0x56791c
lea ecx, [ebp - 0x1a8]
mov byte [ebp - 4], 0x12
call fcn.00401ff0
mov dword [ebp - 0x168], eax
push 1
lea eax, [ebp - 0x1a4]
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x17c]
call fcn.004032e0
mov edx, dword [ebp - 0x168]
mov ecx, eax
call fcn.0042aad0
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 0x16d], al
call fcn.00402ed0
lea ecx, [ebp - 0x1a8]
mov byte [ebp - 4], 0x12
call fcn.00402ed0
cmp byte [ebp - 0x16d], 0
je 0x5034a1
push 0x567920
lea ecx, [ebp - 0x17c]
call fcn.00401f40
cmp dword [ebp - 0x90], 8
lea eax, [ebp - 0xa4]
lea edx, [ebp - 0x17c]
cmovae eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0x1ac]
push eax
call fcn.00401d60
add esp, 4
push eax
lea ecx, [edi + 0x60]
mov byte [ebp - 4], 0x14
call fcn.00401f90
lea ecx, [ebp - 0x1ac]
mov byte [ebp - 4], 0x12
call fcn.00402ed0
lea ecx, [edi + 0x70]
call fcn.00435dc0
cmp esi, dword [ebp - 0x184]
je 0x5035dd
mov ebx, dword [ebp - 0x178]
lea eax, [edi + 0x70]
mov edi, dword [ebp - 0x184]
mov dword [ebp - 0x168], eax
nop
push 0
push 0x567900
mov ecx, esi
call fcn.00403440
test eax, eax
js 0x503584
push 0x567918
lea edx, [ebx + 0x43c]
lea ecx, [ebp - 0x1b0]
call fcn.00401d60
add esp, 4
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x74]
cmp dword [ebp - 0x60], 8
mov edx, eax
cmovae ecx, dword [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x18c]
call fcn.00401d60
add esp, 4
lea ecx, [ebp - 0x1b0]
mov byte [ebp - 4], 0x17
call fcn.00402ed0
push dword [ebp - 0x18c]
mov ecx, esi
push str.INSTPATH
call fcn.004072d0
lea ecx, [ebp - 0x18c]
jmp 0x5035b1
push esi
lea edx, [ebp - 0x17c]
lea ecx, [ebp - 0x190]
call fcn.00401e60
add esp, 4
lea eax, [ebp - 0x190]
mov byte [ebp - 4], 0x18
push eax
mov ecx, esi
call fcn.00401f90
lea ecx, [ebp - 0x190]
mov byte [ebp - 4], 0x12
call fcn.00402ed0
mov ecx, dword [ebp - 0x168]
push esi
call fcn.00442f40
add esi, 8
cmp esi, edi
jne 0x503510
mov edi, dword [ebp - 0x194]
mov ebx, dword [ebp - 0x1b4]
lea ecx, [ebp - 0x17c]
mov byte [ebp - 4], 0xb
call fcn.00402ed0
mov esi, dword [ebp - 0x178]
lea eax, [esi + 0x438]
push eax
lea ecx, [edi + 0x64]
call fcn.00401f90
lea ecx, [edi + 0x88]
call fcn.00411750
push eax
lea ecx, [edi + 0x88]
call fcn.00401f90
push dword [ebp - 0x16c]
mov ecx, esi
call fcn.004f16d0
test eax, eax
jne 0x50363a
push dword [ebp - 0x16c]
mov ecx, esi
call fcn.004f15a0
test eax, eax
je 0x503686
push dword [edi + 0x60]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x503686
lea edi, [esi + 0x458]
mov esi, dword [edi + 4]
lea edx, [ebp - 0x16c]
push esi
push dword [edi]
lea ecx, [ebp - 0x1b8]
call fcn.00446890
add esp, 8
cmp dword [eax], esi
jne 0x503686
mov eax, dword [ebp - 0x16c]
mov ecx, edi
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x168]
push eax
call fcn.00435b70
lea ecx, [ebp - 0xd4]
call fcn.00403110
lea ecx, [ebp - 0x8c]
call fcn.00403110
lea ecx, [ebp - 0xec]
call fcn.00403110
lea ecx, [ebp - 0x104]
call fcn.00403110
lea ecx, [ebp - 0x14c]
call fcn.00403110
lea ecx, [ebp - 0x188]
call fcn.0042cdd0
lea ecx, [ebp - 0x74]
call fcn.00403110
lea ecx, [ebp - 0xa4]
call fcn.00403110
lea ecx, [ebp - 0xbc]
call fcn.00403110
lea ecx, [ebp - 0x11c]
call fcn.00403110
lea ecx, [ebp - 0x44]
call fcn.00403110
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
call fcn.00403110
mov edi, dword [ebp - 0x178]
jmp 0x502c52
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret 4