Function at 0x431690
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x10c]
sub esp, 0x10c
push 0xffffffffffffffff
push 0x57a5b0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x60bd28]
xor eax, ebp
mov dword [ebp + 0x108], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0x118]
mov ebx, dword [ebp + 0x114]
push 0xffffffffffffffff
push 0
mov dword [ebp - 0x28], ecx
call fcn.005168b9
call fcn.00512f10
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4316fe
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp]
push ecx
push 0x104
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp]
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x431730
sub eax, ecx
push eax
lea edx, [ebp]
push edx
lea ecx, [ebp - 0x14]
call fcn.004086f0
push 1
push 0x5961cc
lea ecx, [ebp - 0x14]
call fcn.004086f0
push 8
push str.InfoTool
lea ecx, [ebp - 0x14]
call fcn.004086f0
push 1
push 0x5961cc
lea ecx, [ebp - 0x14]
call fcn.004086f0
push 0xf
push str.HDReadiness.txt
lea ecx, [ebp - 0x14]
call fcn.004086f0
call fcn.00512f10
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43179e
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x2c], esp
mov esi, esp
push eax
mov byte [ebp - 4], 1
call fcn.00401b70
lea ecx, [ebp - 0x24]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.0042b630
lea edx, [ebp - 0x24]
push edx
mov byte [ebp - 4], 2
call fcn.0042ada0
add esp, 0xc
test al, al
jne 0x43180a
mov eax, dword [ebp - 0x24]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x2c], esp
mov esi, esp
push eax
call fcn.00401b70
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0042ae80
add esp, 4
push str.CONF
push 0x170
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x4319e5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test edi, edi
mov byte [ebp - 4], 3
jne 0x43184d
xor eax, eax
jmp 0x43185d
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x431852
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x20]
call fcn.00402290
push 1
push 0xd
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x18], 0xd
mov byte [ebp - 0x17], 0xa
mov byte [ebp - 0x16], 0
call fcn.00408350
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00408410
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4318b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x48]
call fcn.0051eeda
mov ecx, dword [ebp - 0x14]
push 0
push 0x1001
push ecx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.0051ef3a
mov edx, dword [ebp - 0x28]
push 0
push 0
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push 1
push 0xd
mov ebx, eax
call fcn.00408350
mov edi, dword [ebp - 0x20]
push ecx
lea eax, [edi - 0x10]
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
mov byte [ebp - 4], 6
call fcn.00401b70
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], 5
call fcn.00426df0
add esp, 0x14
test ebx, ebx
je 0x431955
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [ebp - 0x48]
call fcn.0051f0ec
mov eax, dword [ebp - 0x14]
push 5
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov esi, esp
push eax
call fcn.00401b70
add esp, 4
add eax, 0x10
mov dword [esi], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
mov byte [ebp - 4], 7
push str.HD_Red_Dummy_video_OK
jmp 0x431980
mov eax, dword [ebp - 0x14]
push 2
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov esi, esp
push eax
call fcn.00401b70
add esp, 4
add eax, 0x10
mov dword [esi], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
mov byte [ebp - 4], 8
push str.HD_Red_Dummy_video_ERROR
call fcn.00402a30
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 5
call fcn.0043bcd0
lea ecx, [ebp - 0x60]
call fcn.0043a600
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.0051f33e
mov dword [ebp - 4], 2
jmp 0x4319d5
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp - 0x30], 0
jne 0x431a52
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431a08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431a28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431a4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x431ac0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431a75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431a95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431abb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 + 0x108]
xor ecx, ebp
call fcn.0053fab2
add ebp, 0x10c
mov esp, ebp
pop ebp
ret