Function at 0x4504c0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56041c
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
mov eax, dword [0x5ba278]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x268], esi
call fcn.00513be0
add esp, 0xc
mov dword [ebp - 0x270], 1
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x104
lea ecx, [ebp - 0x261]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.0044c140
push eax
lea ecx, [ebp - 0x261]
call fcn.0044c770
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x450582
xor eax, eax
mov dword [ebp - 0x220], 0
push eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
push 0x56e6d0
jmp 0x4505d8
lea ecx, [ebp - 0x261]
call fcn.0044c520
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4505c1
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0041a300
mov dword [ebp - 4], 0
call fcn.00477e30
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x450771
push 0x5d
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxpush_jkw.cc
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], al
call fcn.0041a210
push 3
push 0x56ec58
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0041a210
mov byte [ebp - 4], 2
call fcn.00477e30
mov edi, eax
lea ecx, [ebp - 0x308]
push 0x101
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00405490
mov esi, eax
push str.push_jkw::UninstallJkw__path
push esi
mov byte [ebp - 4], 3
call fcn.004067f0
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
mov eax, 0x56e944
cmovae ecx, dword [ebp - 0x230]
test ecx, ecx
cmovne eax, ecx
push eax
push esi
call fcn.00403b20
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x308]
call fcn.004085e0
mov edx, dword [ebp - 0x234]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x450712
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x450708
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4507fe
push edx
push ecx
call fcn.00469b7f
add esp, 8
mov edx, dword [ebp - 0x24c]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x45076b
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x450761
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x450803
push edx
push ecx
call fcn.00469b7f
add esp, 8
mov esi, dword [ebp - 0x268]
xor bl, bl
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4507a4
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0045be20
add esp, 8
mov bl, al
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4507e0
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4507d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x450808
push edx
push ecx
call fcn.00469b7f
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00469a1d
mov esp, ebp
pop ebp
ret
call fcn.005181c9
call fcn.005181c9
call fcn.005181c9
int3