Function at 0x412a50
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a314
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x4b0070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x444]
mov dword [ebp - 0x450], eax
push 0x40
mov dword [ebp - 0x450], 0x4b3094
mov dword [0x4b3094], 0
mov dword [0x4b3098], 0
call fcn.00467c71
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x4b3094], eax
mov dword [0x4b30a0], 0xffffffff
mov dword [0x4b30a4], 0
mov dword [0x4b30a8], 1
mov dword [ebp - 4], 0
mov dword [0x4b30ac], 0
mov dword [0x4b30b0], 0
mov dword [0x4b30b4], 0
xor esi, esi
mov byte [ebp - 4], 1
push 0x20a
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x448], esi
push esi
push eax
xor edi, edi
mov dword [ebp - 0x44c], esi
call fcn.00469580
add esp, 0x10
lea eax, [ebp - 0x21c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x412c10
add eax, eax
cmp eax, 0x20a
jae 0x412ec5
xor ecx, ecx
mov word [ebp + eax - 0x21c], cx
lea eax, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x412c0e
push edi
call fcn.00467dc4
add esp, 4
mov esi, eax
lea eax, [ebp - 0x21c]
push esi
push edi
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x412bfb
lea eax, [ebp - 0x440]
mov dword [ebp - 0x43c], 0
push eax
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x440], 0
push eax
push 0x49a83c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x412bfb
mov ecx, dword [ebp - 0x43c]
push esi
mov eax, dword [ecx + 8]
mov edi, eax
movzx eax, ax
mov dword [ebp - 0x448], eax
movzx eax, word [ecx + 0xe]
shr edi, 0x10
mov dword [ebp - 0x44c], eax
call fcn.00467dcd
mov esi, dword [ebp - 0x448]
add esp, 4
jmp 0x412c10
push esi
xor edi, edi
call fcn.00467dcd
mov esi, dword [ebp - 0x448]
add esp, 4
jmp 0x412c10
xor edi, edi
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.00469580
add esp, 0xc
lea eax, [ebp - 0x428]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.00401cf0
mov ecx, eax
test ecx, ecx
je 0x412eca
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x428]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x43c]
push str._sSuWanBrowserLogInstall
push eax
call fcn.0040c930
add esp, 0xc
lea eax, [ebp - 0x438]
xorps xmm0, xmm0
movups xmmword [ebp - 0x438], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
imul edi, edi, 0x64
add edi, esi
call fcn.00401cf0
mov ecx, eax
test ecx, ecx
je 0x412ed4
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x448], eax
mov byte [ebp - 4], 3
movzx eax, word [ebp - 0x42c]
push eax
movzx eax, word [ebp - 0x42e]
push eax
movzx eax, word [ebp - 0x430]
mov esi, dword [ebp - 0x43c]
push eax
movzx eax, word [ebp - 0x432]
push eax
movzx eax, word [ebp - 0x436]
push eax
movzx eax, word [ebp - 0x438]
push eax
push dword [ebp - 0x44c]
lea eax, [ebp - 0x448]
push edi
push esi
push str._sSuWanBrowserInstall__u._u__04u_02u_02u_02u_02u_02u.log
push eax
call fcn.0040c930
mov edi, dword [ebp - 0x448]
add esp, 0x14
mov edx, esp
mov ecx, edi
xorps xmm0, xmm0
movups xmmword [edx], xmm0
lea eax, [ecx + 2]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [ebp - 0x440], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412d30
sub ecx, dword [ebp - 0x440]
sar ecx, 1
push ecx
push edi
mov ecx, edx
call fcn.0040eeb0
call fcn.00413190
push 0x48e2f2
push 0xc
call fcn.00467dd2
add esp, 8
mov dword [ebp - 0x44c], eax
test eax, eax
je 0x412d80
mov dword [eax + 4], 1
mov dword [eax], vtable.FileLogProvider.0
mov dword [eax + 8], 0
jmp 0x412d88
xor eax, eax
mov dword [ebp - 0x44c], eax
push 0x48e2f2
push 8
mov dword [ebp - 0x454], eax
call fcn.00467dd2
mov ecx, eax
mov dword [ebp - 0x440], eax
add esp, 8
test ecx, ecx
je 0x412db8
mov dword [ecx + 4], 2
mov dword [ecx], vtable.DebugerLogProvider.0
jmp 0x412dc0
xor ecx, ecx
mov dword [ebp - 0x440], ecx
mov eax, dword [ebp - 0x44c]
mov dword [ebp - 0x444], ecx
test eax, eax
je 0x412e6e
test ecx, ecx
je 0x412e6e
mov edx, dword [0x4b30b0]
cmp edx, dword [0x4b30b4]
je 0x412dfb
mov dword [edx], eax
mov eax, dword [0x4b30b0]
add eax, 4
mov dword [0x4b30b0], eax
jmp 0x412e18
lea eax, [ebp - 0x454]
mov ecx, 0x4b30ac
push eax
push edx
call fcn.00412f50
mov eax, dword [0x4b30b0]
mov ecx, dword [ebp - 0x440]
cmp eax, dword [0x4b30b4]
je 0x412e31
mov dword [eax], ecx
mov eax, dword [0x4b30b0]
add eax, 4
mov dword [0x4b30b0], eax
jmp 0x412e48
lea edx, [ebp - 0x444]
mov ecx, 0x4b30ac
push edx
push eax
call fcn.00412f50
mov eax, dword [0x4b30b0]
mov esi, dword [0x4b30ac]
cmp esi, eax
je 0x412e68
mov ecx, dword [esi]
push 0x4b3094
mov eax, dword [ecx]
call dword [eax]
add esi, 4
cmp esi, dword [0x4b30b0]
jne 0x412e52
mov esi, dword [ebp - 0x43c]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412e8c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x412ea5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 0x4b3094
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046780a
mov esp, ebp
pop ebp
ret
call fcn.00467f49
push 0x80004005
call fcn.00402200
push 0x80004005
call fcn.00402200
int3