Function at 0x4377d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c4dd
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x6102d4]
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, ecx
call fcn.00453b83
test eax, eax
jne 0x437bc0
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0056f980
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x437840
mov eax, dword [0x5a1724]
mov ecx, esi
mov dword [edi], eax
lea eax, [ebp - 0x218]
push eax
call fcn.0041e7b0
call fcn.00410740
mov ecx, eax
call fcn.004132f0
xor ecx, ecx
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], cx
lea ecx, [ebp - 0x260]
push eax
mov dword [ebp - 0x24c], 7
call fcn.0041e7b0
lea ecx, [ebp - 0x294]
mov dword [ebp - 4], 0
call fcn.0045048a
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 1
call fcn.004504be
test eax, eax
je 0x43799d
lea eax, [ebp - 0x270]
mov dword [ebp - 0x270], 0
push eax
lea ecx, [ebp - 0x294]
call fcn.004505ac
xor eax, eax
mov dword [ebp - 0x220], 0
push str.GameBoxSlpr.dll
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.0041e7b0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 2
push eax
push esi
lea eax, [ebp - 0x260]
mov ecx, esi
push eax
call fcn.00434bc0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.0040a530
xor eax, eax
mov dword [ebp - 0x220], 0
push str.GameBoxSlpr64.dll
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.0041e7b0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 3
push eax
push esi
lea eax, [ebp - 0x260]
mov ecx, esi
push eax
call fcn.00434bc0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.0040a530
push dword [ebp - 0x270]
lea ecx, [ebp - 0x294]
call fcn.004505ca
jmp 0x437a45
xor eax, eax
mov dword [ebp - 0x220], 0
push str.GameBoxSlpr.dll
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.0041e7b0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 4
push eax
push esi
lea eax, [ebp - 0x260]
mov ecx, esi
push eax
call fcn.00434bc0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.0040a530
xor eax, eax
mov dword [ebp - 0x220], 0
push str.GameBoxSlpr64.dll
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.0041e7b0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 5
push eax
push esi
lea eax, [ebp - 0x260]
mov ecx, esi
push eax
call fcn.00434bc0
lea ecx, [ebp - 0x230]
call fcn.0040a530
xor eax, eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
push str.CLSID_
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 6
call fcn.0041e7b0
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x264]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push ecx
push 0xf013f
push 0
push eax
push accept
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x437ae8
push dword [ebp - 0x264]
mov ecx, esi
call fcn.004350f0
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x437ae8
push eax
call edi
push str.SOFTWAREClassesCLSID_
lea ecx, [ebp - 0x248]
call fcn.0041e7b0
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x268]
push ecx
push 0xf013f
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push 0
push eax
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x437b40
push dword [ebp - 0x268]
mov ecx, esi
call fcn.004350f0
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x437b40
push eax
call edi
push str.TypeLib_
lea ecx, [ebp - 0x248]
call fcn.0041e7b0
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x26c]
push ecx
push 0xf013f
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push 0
push eax
push accept
call ebx
test eax, eax
jne 0x437b98
push dword [ebp - 0x26c]
mov ecx, esi
call fcn.00435840
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x437b98
push eax
call edi
mov ecx, esi
call fcn.00435d30
lea ecx, [ebp - 0x248]
call fcn.0040a530
lea ecx, [ebp - 0x294]
call fcn.0045049d
lea ecx, [ebp - 0x260]
call fcn.0040a530
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.0045ef18
mov esp, ebp
pop ebp
ret