Function at 0x40faa0
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xd68
mov eax, dword [0x469188]
test eax, eax
je 0x4104f8
lea eax, [ebp - 0xd40]
mov dword [esp + 4], 0x104
lea edi, [ebp - 0x82c]
mov dword [esp], eax
lea esi, [ebp - 0x624]
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0xd40]
sub esp, 8
mov dword [esp + 8], eax
mov eax, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0xd54], eax
call eax
xor eax, eax
sub esp, 0x18
nop
movzx edx, word [edi + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x40fb20
cmp word [ebp - 0x624], 0
mov edx, esi
je 0x40fb49
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x40fb40
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + str._assemblyGAC]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40fb50
mov dword [ebp - 0xd44], 0
lea eax, [ebp - 0xd44]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 2
call dword [0x469188]
sub esp, 0xc
mov ebx, eax
call fcn.004107b0
mov dword [eax], 0x426071
mov dword [eax + 4], 0x5b
xor eax, eax
cmp ebx, 0x8007007a
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.Expected_E_NOT_SUFFICIENT_BUFFER__got__08lx_n
call fcn.0040f940
call fcn.004107b0
mov dword [eax], 0x426071
cmp word [ebp - 0x624], 0
mov dword [eax + 4], 0x5c
mov ecx, dword [ebp - 0xd44]
je 0x410520
mov edx, esi
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x40fbf0
sub edx, esi
mov eax, esi
sar edx, 1
add edx, 1
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40fc08
sub eax, esi
sar eax, 1
add eax, 1
cmp ecx, eax
mov dword [esp + 0xc], ecx
sete al
mov dword [esp + 8], edx
movzx eax, al
mov dword [esp + 4], str.Expected__d__got__ld_n
mov dword [esp], eax
call fcn.0040f940
lea eax, [ebp - 0xd44]
mov dword [ebp - 0xd44], 0x104
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 2
call dword [0x469188]
sub esp, 0xc
mov ebx, eax
call fcn.004107b0
mov dword [eax], 0x426071
mov dword [eax + 4], 0x62
xor eax, eax
cmp ebx, 0x8007007a
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.Expected_E_NOT_SUFFICIENT_BUFFER__got__08lx_n
call fcn.0040f940
call fcn.004107b0
mov dword [eax], 0x426071
cmp word [ebp - 0x624], 0
mov dword [eax + 4], 0x63
mov ecx, dword [ebp - 0xd44]
je 0x410530
mov edx, esi
nop
add edx, 2
cmp word [edx], 0
jne 0x40fcc0
sub edx, esi
mov eax, esi
sar edx, 1
add edx, 1
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40fcd8
sub eax, esi
sar eax, 1
add eax, 1
cmp ecx, eax
mov dword [esp + 0xc], ecx
sete al
mov dword [esp + 8], edx
movzx eax, al
mov dword [esp + 4], str.Expected__d__got__ld_n
mov dword [esp], eax
call fcn.0040f940
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 2
call dword [0x469188]
sub esp, 0xc
mov ebx, eax
call fcn.004107b0
mov dword [eax], 0x426071
mov dword [eax + 4], 0x68
xor eax, eax
cmp ebx, 0x80070057
sete al
mov dword [esp + 8], ebx
lea ebx, [ebp - 0x214]
mov dword [esp], eax
mov dword [esp + 4], str.Expected_E_INVALIDARG__got__08lx_n
call fcn.0040f940
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [eax + str.nochange]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x40fd68
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 2
call dword [0x469188]
sub esp, 0xc
mov dword [ebp - 0xd48], eax
call fcn.004107b0
mov edx, dword [ebp - 0xd48]
mov dword [eax], 0x426071
mov dword [eax + 4], 0x6d
xor eax, eax
cmp edx, 0x80070057
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.Expected_E_INVALIDARG__got__08lx_n
call fcn.0040f940
call fcn.004107b0
mov dword [eax], 0x426071
mov dword [eax + 4], 0x6e
mov eax, ebx
call fcn.0040f160
mov dword [ebp - 0xd50], eax
mov eax, str.nochange
call fcn.0040f160
mov dword [ebp - 0xd4c], eax
mov eax, dword [sym.imp.kernel32.dll_lstrcmpW]
mov dword [esp + 4], ebx
mov dword [esp], str.nochange
mov dword [ebp - 0xd48], eax
call eax
mov ecx, dword [ebp - 0xd50]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 0xc], ecx
mov edx, dword [ebp - 0xd4c]
movzx eax, al
mov dword [esp + 4], str.Expected__s___got__s_n
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.0040f940
xor eax, eax
lea esi, [esi]
movzx edx, word [eax + str.nochange]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x40fe50
mov dword [ebp - 0xd44], 0x104
lea eax, [ebp - 0xd44]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], 2
call dword [0x469188]
sub esp, 0xc
mov dword [ebp - 0xd4c], eax
call fcn.004107b0
mov edx, dword [ebp - 0xd4c]
mov dword [eax], 0x426071
mov dword [eax + 4], 0x75
xor eax, eax
test edx, edx
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.Expected_S_OK__got__08lx_n
call fcn.0040f940
call fcn.004107b0
mov dword [eax], 0x426071
mov dword [eax + 4], 0x76
mov eax, ebx
call fcn.0040f160
mov dword [ebp - 0xd50], eax
mov eax, esi
call fcn.0040f160
mov dword [ebp - 0xd4c], eax
mov dword [esp + 4], ebx
mov dword [esp], esi
mov eax, dword [ebp - 0xd48]
call eax
mov ecx, dword [ebp - 0xd50]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 0xc], ecx
mov edx, dword [ebp - 0xd4c]
movzx eax, al
mov dword [esp + 4], str.Expected__s___got__s_n
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.0040f940
xor eax, eax
movzx edx, word [eax + str.nochange]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x40ff30
cmp word [ebp - 0x624], 0
je 0x410540
mov eax, esi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x40ff58
sub eax, esi
sar eax, 1
mov dword [ebp - 0xd44], eax
lea eax, [ebp - 0xd44]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], 2
call dword [0x469188]
sub esp, 0xc
mov dword [ebp - 0xd4c], eax
call fcn.004107b0
mov edx, dword [ebp - 0xd4c]
mov dword [eax], 0x426071
mov dword [eax + 4], 0x7c
xor eax, eax
cmp edx, 0x8007007a
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.Expected_E_NOT_SUFFICIENT_BUFFER__got__08lx_n
call fcn.0040f940
call fcn.004107b0
mov dword [eax], 0x426071
mov dword [eax + 4], 0x7d
mov eax, ebx
call fcn.0040f160
mov dword [ebp - 0xd50], eax
mov eax, str.nochange
call fcn.0040f160
mov dword [ebp - 0xd4c], eax
mov dword [esp + 4], ebx
mov dword [esp], str.nochange
mov eax, dword [ebp - 0xd48]
call eax
mov ecx, dword [ebp - 0xd50]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 0xc], ecx
mov edx, dword [ebp - 0xd4c]
movzx eax, al
mov dword [esp + 4], str.Expected__s___got__s_n
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.0040f940
xor eax, eax
lea esi, [esi]
movzx edx, word [edi + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x410040
cmp word [ebp - 0x624], 0
mov edx, esi
je 0x410069
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x410060
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + str._assembly]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x410070
xor eax, eax
lea esi, [esi]
movzx edx, word [eax + str.nochange]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x410088
mov dword [ebp - 0xd44], 0x104
lea eax, [ebp - 0xd44]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], 8
call dword [0x469188]
sub esp, 0xc
mov edi, eax
call fcn.004107b0
mov dword [eax], 0x426071
mov dword [eax + 4], 0x87
test edi, edi
jne 0x410440
mov dword [esp + 8], 0
mov dword [esp + 4], str.Expected_S_OK__got__08lx_n
mov dword [esp], 1
call fcn.0040f940
call fcn.004107b0
mov dword [eax], 0x426071
mov dword [eax + 4], 0x8b
mov eax, ebx
call fcn.0040f160
mov dword [ebp - 0xd4c], eax
mov eax, esi
call fcn.0040f160
mov dword [esp + 4], ebx
mov dword [esp], esi
mov edi, eax
mov eax, dword [ebp - 0xd48]
call eax
mov edx, dword [ebp - 0xd4c]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 0xc], edx
movzx eax, al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.Expected__s___got__s_n
call fcn.0040f940
mov eax, dword [0x469180]
test eax, eax
je 0x410362
mov edx, 0x5f
mov ecx, 0x32
mov dword [ebp - 0xa34], 0x6974614e
mov dword [ebp - 0xa30], 0x6d496576
mov dword [ebp - 0xa2c], 0x73656761
mov word [ebp - 0xa28], dx
mov dword [ebp - 0x930], 0x255c7325
mov dword [ebp - 0x92c], 0x73255c73
mov dword [ebp - 0x928], 0x335f7325
mov word [ebp - 0x924], cx
lea edx, [ebp - 0x41c]
lea edi, [ebp - 0xd44]
mov dword [esp + 4], 0x104
mov dword [esp + 8], edi
lea edi, [ebp - 0xc3c]
mov dword [esp], edx
call eax
lea edx, [ebp - 0x41c]
sub esp, 0xc
mov dword [esp + 8], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x104
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
lea eax, [ebp - 0xa34]
sub esp, 0x20
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xd40]
mov dword [esp + 0x14], edi
lea edi, [ebp - 0xb38]
mov dword [esp + 8], eax
lea eax, [ebp - 0x930]
mov dword [esp + 0xc], str.assembly
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.user32.dll_wsprintfA]
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [ebp - 0xd54]
call eax
xor eax, eax
sub esp, 0x18
lea esi, [esi]
movzx edx, word [eax + str.nochange]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x410298
mov dword [ebp - 0xd44], 0x104
lea eax, [ebp - 0xd44]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], 1
call dword [0x469188]
sub esp, 0xc
mov edi, eax
call fcn.004107b0
mov dword [eax], 0x426071
mov dword [eax + 4], 0xad
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.Expected_S_OK__got__08lx_n
call fcn.0040f940
call fcn.004107b0
mov dword [eax], 0x426071
mov dword [eax + 4], 0xae
mov eax, ebx
call fcn.0040f160
mov dword [ebp - 0xd4c], eax
mov eax, esi
call fcn.0040f160
mov dword [esp + 4], ebx
mov dword [esp], esi
mov edi, eax
mov eax, dword [ebp - 0xd48]
call eax
mov edx, dword [ebp - 0xd4c]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 0xc], edx
movzx eax, al
mov dword [esp + 8], edi
mov dword [esp + 4], str.Expected__s___got__s_n
mov dword [esp], eax
call fcn.0040f940
xor eax, eax
lea esi, [esi]
movzx edx, word [eax + str.nochange]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x410368
mov dword [ebp - 0xd44], 0x104
lea eax, [ebp - 0xd44]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], 0xa
call dword [0x469188]
sub esp, 0xc
mov esi, eax
call fcn.004107b0
mov dword [eax], 0x426071
mov dword [eax + 4], 0xb5
xor eax, eax
cmp esi, 0x80070057
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.Expected_E_INVALIDARG__got__08lx_n
call fcn.0040f940
call fcn.004107b0
mov dword [eax], 0x426071
mov dword [eax + 4], 0xb6
mov eax, ebx
call fcn.0040f160
mov edi, eax
mov eax, str.nochange
call fcn.0040f160
mov dword [esp + 4], ebx
mov esi, eax
mov dword [esp], str.nochange
mov eax, dword [ebp - 0xd48]
call eax
sub esp, 8
test eax, eax
sete al
mov dword [esp + 0xc], edi
movzx eax, al
mov dword [esp + 8], esi
mov dword [esp + 4], str.Expected__s___got__s_n
mov dword [esp], eax
call fcn.0040f940
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x4691d0]
test eax, eax
jne 0x410451
cmp edi, 0x80070057
je 0x4104c8
mov dword [esp + 8], edi
mov dword [esp + 4], str.Expected_S_OK__got__08lx_n
mov dword [esp], 0
call fcn.0040f940
mov eax, dword [0x469180]
test eax, eax
je 0x410362
mov dword [ebp - 0xa2c], 0x73656761
mov dword [ebp - 0x92c], 0x73255c73
mov dword [ebp - 0xa34], 0x6974614e
mov dword [ebp - 0xa30], 0x6d496576
mov dword [ebp - 0xa29], 0x5f3173
mov dword [ebp - 0x930], 0x255c7325
mov dword [ebp - 0x929], 0x732573
jmp 0x4101bc
mov dword [esp + 8], 0x80070057
mov dword [esp + 4], str.Expected_S_OK__got__08lx_n
mov dword [esp], 1
call fcn.0040f940
mov eax, dword [0x469180]
test eax, eax
jne 0x410476
jmp 0x410362
call fcn.004107b0
mov dword [eax], 0x426071
mov dword [eax + 4], 0x4f
mov dword [esp], str.GetCachePath_not_implemented_n
call fcn.0040f960
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 1
mov edx, 1
jmp 0x40fc18
mov eax, 1
mov edx, 1
jmp 0x40fce8
xor eax, eax
jmp 0x40ff65