Function at 0x413030
Capabilities:
Get common file path
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499c47
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x4c4184]
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 ebx, ecx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x11c], 0
mov dword [ebx + 4], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x20], vtable.UpdateCheckDelegate.0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx], vtable.AsusUpdateDlg.0
mov dword [ebx + 0x20], vtable.AsusUpdateDlg.1.0
mov byte [ebp - 4], 3
call fcn.0040a520
mov ecx, eax
test ecx, ecx
je 0x413ab1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
and dword [ebx + 0xa0], 0xfffffff0
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x80], 8
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x9c], 0
mov dword [ebx + 0x88], 0xffffffff
mov dword [ebx + 0x8c], 0xffffffff
mov dword [ebx + 0x90], 0xffffffff
mov dword [ebx + 0x94], 0xffffffff
mov dword [ebx + 0x5c], vtable.WTL::CBitmapButton.0
mov dword [ebx + 0xa8], 0
mov dword [ebx + 0xb8], 0
mov dword [ebx + 0xbc], 0
mov dword [ebx + 0xc0], 0
mov dword [ebx + 0xc4], eax
mov dword [ebx + 0xcc], 0x5000ff
mov dword [ebx + 0xd0], 0xcccccc
mov dword [ebx + 0xa4], vtable.ACProgressBar.0
and dword [ebx + 0x118], 0xfffffff0
mov dword [ebx + 0xd8], 0
mov dword [ebx + 0xe8], 0
mov dword [ebx + 0xec], 0
mov dword [ebx + 0xf0], 0
mov dword [ebx + 0xf4], eax
mov dword [ebx + 0xf8], 0xa
mov dword [ebx + 0xfc], 0
mov dword [ebx + 0x110], 0
mov dword [ebx + 0x114], 0
mov dword [ebx + 0x100], 0xffffffff
mov dword [ebx + 0x104], 0xffffffff
mov dword [ebx + 0x108], 0xffffffff
mov dword [ebx + 0x10c], 0xffffffff
mov dword [ebx + 0xd4], vtable.ACButton.0
mov dword [ebx + 0x11c], 0
and dword [ebx + 0x164], 0xfffffff0
mov dword [ebx + 0x124], 0
mov dword [ebx + 0x134], 0
mov dword [ebx + 0x138], 0
mov dword [ebx + 0x13c], 0
mov dword [ebx + 0x140], eax
mov dword [ebx + 0x144], 0xa
mov dword [ebx + 0x148], 0
mov dword [ebx + 0x15c], 0
mov dword [ebx + 0x160], 0
mov dword [ebx + 0x14c], 0xffffffff
mov dword [ebx + 0x150], 0xffffffff
mov dword [ebx + 0x154], 0xffffffff
mov dword [ebx + 0x158], 0xffffffff
mov dword [ebx + method.ACButton.virtual_0], vtable.ACButton.0
mov dword [ebx + 0x168], 0
mov byte [ebp - 4], 0xb
mov dword [ebx + 0x16c], 0
lea esi, [ebx + 0x170]
mov dword [ebp - 0x114], esi
push 0x74
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0044a090
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [ebx + 0x178]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x114], esi
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0044a090
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor eax, eax
mov dword [ebx + 0x180], 0
mov dword [ebx + 0x190], 0
mov dword [ebx + 0x194], 7
mov word [ebx + 0x180], ax
mov dword [ebx + 0x198], eax
mov dword [ebx + 0x1a8], eax
mov dword [ebx + 0x1ac], 7
mov dword [ebx + 0x1b0], eax
mov dword [ebx + 0x1c0], eax
mov dword [ebx + 0x1c4], 7
mov dword [ebx + 0x1cc], eax
mov dword [ebx + 0x1d0], eax
mov dword [ebx + 0x1d4], eax
lea ecx, [ebx + 0x1d8]
mov byte [ebp - 4], 0xf
mov dword [ecx], eax
push eax
push 0x4a13dc
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.00409280
push 0
lea eax, [ebp - 0x138]
mov word [ebx + 0x1f0], 0
push eax
lea eax, [ebx + 0x34]
mov dword [ebp - 0x138], 1
push eax
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
call sub.gdiplus.dll_GdiplusStartup
mov eax, dword [ebx + 0x30]
cmp eax, 2
je 0x413472
cmp eax, 3
jne 0x413479
mov byte [ebx + 0x1f1], 1
lea eax, [ebp - 0x178]
mov dword [ebp - 0x178], 0x30
push eax
push 0x4a19e0
push 0
call dword [sym.imp.USER32.dll_GetClassInfoExW]
and dword [ebp - 0x174], 0xffffbfff
lea eax, [ebp - 0x178]
push eax
mov dword [ebp - 0x150], 0x4a19b4
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov byte [ebp - 4], 0x11
call fcn.0040a520
mov ecx, eax
test ecx, ecx
je 0x413ab1
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x118], esi
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x148], eax
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 0x140], 0xffffffff
jge 0x41351d
push 0x104
lea ecx, [ebp - 0x118]
call fcn.0040a6d0
mov esi, dword [ebp - 0x118]
mov dword [ebp - 0x144], esi
push esi
push 0
push 0
push 0x23
push 0
mov byte [ebp - 4], 0x13
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
or edi, 0xffffffff
test eax, eax
js 0x41382c
push 0x4a1fa8
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x41382c
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4c74c4]
mov ebx, dword [eax + ecx*4]
mov eax, dword [0x4c6f10]
cmp eax, dword [ebx + 4]
jg 0x4138a7
jmp 0x4135a1
mov ax, word [ecx]
add ecx, 2
test ax, ax
je 0x4139b8
jmp 0x413577
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
je 0x4139ca
jmp 0x413590
mov eax, dword [0x4c6f30]
cmp eax, dword [ebx + 4]
jg 0x413a59
mov eax, dword [0x4c6f28]
mov dword [ebp - 0x114], 0x4c6eb0
cmp eax, dword [0x4c6f2c]
je 0x4135d8
mov dword [eax], 0x4c6eb0
add dword [0x4c6f28], 4
jmp 0x4135ea
lea ecx, [ebp - 0x114]
push ecx
push eax
mov ecx, 0x4c6f24
call fcn.0040f6f0
lea ecx, [ebp - 0x128]
call fcn.00409e00
mov byte [ebp - 4], 0x1d
call fcn.0040a520
mov ecx, eax
test ecx, ecx
je 0x413ab1
mov eax, dword [ecx]
call dword [eax + 0xc]
mov byte [ebp - 4], 0x1c
mov ebx, 0x103
mov dword [ebp - 0x11c], 1
lea esi, [eax + 0x10]
mov dword [ebp - 0x114], esi
nop dword [eax]
lea edi, [ebx + 1]
test edi, edi
js 0x41389d
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x41365e
push edi
lea ecx, [ebp - 0x114]
call fcn.0040a6d0
mov esi, dword [ebp - 0x114]
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, eax
cmp ebx, edi
sbb eax, eax
and eax, ebx
cmp eax, 0xffffffff
jne 0x413689
test esi, esi
jne 0x41367d
xor eax, eax
jmp 0x413691
push dword [esi - 8]
push esi
call fcn.0046c270
add esp, 8
test eax, eax
js 0x41389d
cmp eax, dword [esi - 8]
jg 0x41389d
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp ebx, edi
jae 0x413630
push esi
lea ecx, [ebp - 0x128]
call fcn.0040a620
or edi, 0xffffffff
mov byte [ebp - 4], 0x1b
mov ebx, eax
add esi, 0xfffffff0
mov ecx, edi
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4136d3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x4137be
push 0x4a1f78
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x128]
call fcn.0040a730
mov eax, dword [0x4c6eac]
mov byte [ebp - 4], 0x1e
test eax, eax
je 0x41379f
cmp dword [eax + 4], 4
jl 0x41379f
push 0
push 0
push 0x4a0d84
push 0x7f
push str.AsusUpdateDlg::AsusUpdateDlg
push 4
lea ecx, [ebp - 0x110]
call fcn.00413ac0
mov esi, eax
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 0x1f
push 0x4a203c
push ecx
call fcn.004160f0
mov eax, dword [ebp - 0x114]
add esp, 8
cmp dword [eax - 4], 1
jle 0x413761
push dword [eax - 0xc]
lea ecx, [ebp - 0x114]
call fcn.0040a060
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x11c], eax
mov ecx, esi
lea eax, [ebp - 0x11c]
push eax
call fcn.0040e260
mov esi, eax
push 0x4a2048
lea ecx, [esi + 0x28]
push ecx
call fcn.004160f0
mov ecx, dword [0x4c6eac]
add esp, 8
push esi
call fcn.004163e0
lea ecx, [ebp - 0x110]
call fcn.004151d0
mov edx, dword [ebp - 0x114]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41381b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41381b
mov eax, dword [0x4c6eac]
test eax, eax
je 0x41381b
cmp dword [eax + 4], 4
jl 0x41381b
push 0
push 0
push 0x4a0d84
push 0x83
push str.AsusUpdateDlg::AsusUpdateDlg
push 4
lea ecx, [ebp - 0x110]
call fcn.00413ac0
mov esi, eax
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 0x20
push 0x4a2054
push ecx
call fcn.004160f0
mov ecx, dword [0x4c6eac]
add esp, 8
push esi
call fcn.004163e0
lea ecx, [ebp - 0x110]
call fcn.004151d0
lea ecx, [ebp - 0x128]
call fcn.00409e50
mov ebx, dword [ebp - 0x120]
mov eax, dword [ebp - 0x118]
mov byte [ebp - 4], 0x21
push dword [eax - 8]
push eax
call fcn.0046c270
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x41389d
mov eax, dword [ebp - 0x118]
cmp ecx, dword [eax - 8]
jg 0x41389d
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x118]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x41387d
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.0044a466
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004046b0
push 0x4c6f10
call fcn.00449f75
add esp, 4
cmp dword [0x4c6f10], 0xffffffff
jne 0x4135a1
mov esi, dword [ebp - 0x118]
mov byte [ebp - 4], 0x14
cmp dword [esi - 4], 1
jle 0x4138e7
push dword [esi - 0xc]
lea ecx, [ebp - 0x118]
call fcn.0040a060
mov esi, dword [ebp - 0x118]
jmp 0x4138e7
push 0x4c6eb4
mov dword [0x4c6eb0], 0x4a1fa0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4c6ecc], 0xffffffff
xor eax, eax
mov dword [0x4c6edc], 0
mov dword [0x4c6ed0], 0
mov dword [0x4c6ed4], 0
mov dword [0x4c6ed8], 3
mov dword [0x4c6eec], 0
mov dword [0x4c6ef0], 7
mov word [0x4c6edc], ax
mov dword [0x4c6ef4], eax
mov dword [0x4c6f04], eax
mov dword [0x4c6f08], 7
mov word [0x4c6ef4], ax
push 0x4c6eb4
mov byte [0x4c6f0c], 1
mov dword [ebp - 0x114], 0x4c6eb4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x2e
push esi
mov byte [ebp - 4], 0x1a
call fcn.0044d1fb
mov edi, eax
add esp, 8
test edi, edi
je 0x413588
mov ecx, edi
sub ecx, esi
sar ecx, 1
push ecx
push esi
mov ecx, 0x4c6ef4
call fcn.00409280
add edi, 2
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x413577
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, 0x4c6edc
call fcn.00409280
jmp 0x4139fe
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, 0x4c6ef4
call fcn.00409280
cmp dword [0x4c6ef0], 8
mov eax, 0x4c6edc
mov dword [0x4c6eec], 0
cmovae eax, dword [0x4c6edc]
xor ecx, ecx
mov word [eax], cx
jmp 0x4139fe
mov eax, dword [0x4c6ecc]
cmp eax, 0xffffffff
je 0x413a1d
push eax
call fcn.0046f33e
add esp, 4
mov dword [0x4c6ecc], 0xffffffff
jmp 0x413a1d
push 0x4c6eb4
mov byte [0x4c6f0c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x49f0e0
mov dword [0x4c6ed4], 0x100000
call fcn.0044a451
push 0x4c6f10
mov byte [ebp - 4], 0x13
call fcn.00449f2b
add esp, 8
jmp 0x4135a1
push 0x4c6f30
call fcn.00449f75
add esp, 4
cmp dword [0x4c6f30], 0xffffffff
jne 0x4135b2
movaps xmm0, xmmword [0x4a3070]
push 0x49f0f0
mov dword [0x4c6eac], 0x4c6f1c
mov dword [0x4c6f1c], 0x4a1f3c
movups xmmword [0x4c6f20], xmm0
call fcn.0044a451
push 0x4c6f30
call fcn.00449f2b
add esp, 8
jmp 0x4135b2
push 0x80004005
call fcn.004046b0
int3