Function at 0x4042e0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x4287fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
mov eax, dword [0x4360fc]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x24c], eax
mov esi, ecx
call fcn.0041c874
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x258], 0
call fcn.0041c874
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x258], 1
call fcn.0041c874
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x258], 2
call fcn.0041c874
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0x26
push 0
mov byte [esp + 0x26c], 3
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea edi, [esp + 0x44]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404394
mov ecx, dword [str.BIOSUPDATE]
mov edx, dword [0x42a784]
mov eax, dword [0x42a788]
mov dword [edi], ecx
push str.huntsf0f.imc
lea ecx, [esp + 0x48]
push ecx
mov dword [edi + 4], edx
lea edx, [esp + 0x34]
push str._s_s
push edx
mov dword [edi + 8], eax
call fcn.00403010
mov edi, dword [esp + 0x3c]
add esp, 0xc
add edi, 0xfffffff0
mov dword [esp + 0x28], esp
mov ebx, esp
push edi
mov dword [esp + 0x28], edi
call fcn.00402740
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [ebx], eax
call fcn.00403bc0
mov eax, dword [esi + 0x44]
push eax
lea ecx, [esp + 0x1c]
push 0x42aaa8
push ecx
call fcn.00403010
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx - 0xc]
add esp, 0xc
test eax, eax
jne 0x404503
push 0x85
call fcn.0041c869
test eax, eax
je 0x404439
push 0x85
push eax
lea ecx, [esp + 0x18]
call fcn.004017c0
mov ecx, dword [esi + 0x40]
lea edx, [esp + 0x10]
add ecx, 0x74
push edx
call fcn.00402f60
mov eax, dword [esi + 0x40]
mov eax, dword [eax + 0x1c]
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0x1c]
push 0
push 0xbb8
push 0xf5f
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov edx, dword [esi + 0x40]
mov eax, dword [edx + 0x1c]
push 0
push 0
push 0x806
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [esp + 0x258], 2
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044b3
mov ecx, dword [edi]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
lea eax, [ebx - 0x10]
mov byte [esp + 0x258], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x258], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
jmp 0x404ab5
push 0x83
call fcn.0041c869
test eax, eax
je 0x404520
push 0x83
push eax
lea ecx, [esp + 0x18]
call fcn.004017c0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call edi
mov ecx, dword [esi + 0x40]
lea eax, [esp + 0x10]
add ecx, 0x74
push eax
call fcn.00402f60
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_InvalidateRect]
push 0
push 0
push ecx
call ebp
push 0x7d0
call edi
lea ecx, [esp + 0x18]
call fcn.00402e80
push 0x84
call fcn.0041c869
test eax, eax
je 0x40457d
push 0x84
push eax
lea ecx, [esp + 0x18]
call fcn.004017c0
mov ecx, dword [esi + 0x40]
lea edx, [esp + 0x10]
add ecx, 0x74
push edx
call fcn.00402f60
mov eax, dword [esi + 0x40]
mov eax, dword [eax + 0x1c]
push 0
push 0
push eax
call ebp
push 0x7d0
call edi
call fcn.0041c874
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0x70]
push ecx
lea edx, [esp + 0x20]
push 0x42aaa8
push edx
mov byte [esp + 0x264], 4
call fcn.00403010
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.00402e80
push 5
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
call fcn.00403b40
mov ecx, dword [eax]
push ecx
lea ebx, [esi + 0x50]
push 0x42aaa8
push ebx
mov byte [esp + 0x264], 5
call fcn.00403010
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x258], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404632
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 8
push 5
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
call fcn.00403b40
mov ecx, dword [eax]
push ecx
lea edx, [esi + 0x48]
push 0x42aaa8
push edx
mov byte [esp + 0x264], 6
call fcn.00403010
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x258], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404686
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 5
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
call fcn.00403b40
mov eax, dword [eax]
mov ebx, dword [ebx]
push eax
push ebx
call fcn.0040f23d
add esp, 8
test eax, eax
mov eax, dword [esp + 0x14]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4046c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x404711
push 0x85
call fcn.0041c869
test eax, eax
je 0x4046ea
push 0x85
push eax
lea ecx, [esp + 0x18]
call fcn.004017c0
mov ecx, dword [esi + 0x40]
lea eax, [esp + 0x10]
add ecx, 0x74
push eax
call fcn.00402f60
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0x1c]
push 0
push 0
push ecx
call ebp
push 0xbb8
jmp 0x404817
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0x84]
push ecx
lea edx, [esp + 0x1c]
push 0x42aaa8
push edx
call fcn.00403010
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.00402e80
push 8
push 5
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
call fcn.00403b40
mov eax, dword [eax]
push 0x10
push 0
push eax
call fcn.0040f63f
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404779
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 8
push 5
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
call fcn.00403b40
mov eax, dword [eax]
push 0x10
push 0
push eax
call fcn.0040f63f
mov ebx, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4047ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
cmp eax, ebx
jle 0x4047e1
push 0x8d
call fcn.0041c869
test eax, eax
je 0x4047f5
push 0x8d
push eax
lea ecx, [esp + 0x18]
call fcn.004017c0
jmp 0x4047f5
jne 0x40489d
push 0x8e
lea ecx, [esp + 0x14]
call fcn.00401890
mov ecx, dword [esi + 0x40]
lea eax, [esp + 0x10]
add ecx, 0x74
push eax
call fcn.00402f60
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0x1c]
push 0
push 0
push ecx
call ebp
push 0x1388
call edi
mov eax, dword [esi + 0x40]
mov edx, dword [eax + 0x1c]
push 0
push 0xbb8
push 0xf5f
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0x1c]
push 0
push 0
push 0x806
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x258], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40486e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
mov byte [esp + 0x258], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404891
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
jmp 0x404a69
lea eax, [esp + 0x38]
push eax
call sub.KERNEL32.dll_GetSystemPowerStatus
push 0x87
lea ecx, [esp + 0x14]
call fcn.00401890
mov ecx, dword [esi + 0x40]
lea edx, [esp + 0x10]
add ecx, 0x74
push edx
call fcn.00402f60
mov eax, dword [esi + 0x40]
mov eax, dword [eax + 0x1c]
push 0
push 0
push eax
call ebp
push 0x7d0
call edi
push 0x7d0
call edi
push 0x89
lea ecx, [esp + 0x14]
call fcn.00401890
call fcn.0041c874
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
push 8
push 0
lea eax, [esp + 0x2c]
mov bl, 7
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x264], bl
call fcn.00403b40
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x1c]
push str._s__s
push eax
mov byte [esp + 0x268], 8
call fcn.00403010
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x258], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404963
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esi + 0x40]
lea eax, [esp + 0x14]
add ecx, 0x74
push eax
call fcn.00402f60
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0x1c]
push 0
push 0
push ecx
call ebp
push 0x3e8
call edi
mov edi, dword [esp + 0x18]
push edi
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x150]
push str._sSWinFlash.exe__BUBIOS.bak__C__MFG__P__S__V__mode3__DMS:_LG_Electronics_Inc.___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00403220
push ecx
lea eax, [esp + 0x150]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
mov byte [esp + 0x264], 9
call fcn.00403220
mov ecx, esi
mov byte [esp + 0x260], bl
call fcn.004039c0
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx + 0x1c]
push 0
push 0
push 0x806
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x258], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x258], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
mov byte [esp + 0x258], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x258], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x258], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404aae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x258], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ad7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x24c]
xor eax, eax
call fcn.0040e7f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret