Function at 0x18037a1d
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x174
mov eax, dword [0x180fd00c]
xor eax, esp
mov dword [esp + 0x170], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov byte [esp + 0x1f], cl
mov ecx, ebx
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [esp + 0xa8], edx
mov dword [esp + 0x7c], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
call fcn.1802e215
lea ecx, [esp + 0xbc]
mov byte [esp + 0x38], al
call fcn.18005c3b
xor eax, eax
lea edi, [esp + 0x14c]
stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.18005c3b
lea ecx, [esp + 0x40]
call fcn.18005c3b
lea ecx, [esp + 0x48]
call fcn.18005c3b
lea ecx, [esp + 0x58]
call fcn.18005c3b
mov eax, dword [0x18100f08]
lea ecx, [esp + 0x118]
mov dword [esp + 0x18], eax
add eax, 0xc
push eax
call fcn.18011b0a
mov ecx, ebx
call fcn.1802df87
mov ecx, ebx
mov dword [esp + 0x34], eax
call fcn.1802df31
lea ecx, [esp + 0x3c]
push ecx
mov ecx, eax
call fcn.1802770b
push esi
lea ecx, [esp + 0x90]
call fcn.18011b0a
lea ecx, [esp + 0x8c]
call fcn.18011b25
test al, al
je 0x18037fc6
lea edi, [ebx + 8]
mov eax, dword [edi]
xchg dword [edi], eax
add eax, 4
lea ecx, [esp + 0x110]
push eax
call fcn.18011b0a
mov ecx, dword [ebx + 0xc]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x34]
mov ecx, dword [esp + 0x110]
mov eax, dword [ecx]
call dword [eax + 8]
lea eax, [esp + 0x13c]
mov ecx, ebx
push eax
call fcn.1802dfe9
mov esi, eax
lea edi, [esp + 0x14c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x34]
mov ecx, esi
call fcn.18035987
test eax, eax
je 0x18038319
push 0
mov ecx, esi
call fcn.18035a69
lea ecx, [esp + 0xc0]
push ecx
mov ecx, eax
call fcn.1803614d
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x94]
push eax
mov edx, edi
call fcn.180114a5
pop ecx
push eax
lea ecx, [esp + 0x14]
call fcn.18005b84
mov ecx, dword [esp + 0x94]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [esp + 0xc0]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [esp + 0x10]
mov edx, str..zip
push 1
call fcn.1800f71c
pop ecx
test al, al
je 0x18037d86
push str.unzip
lea ecx, [esp + 0x64]
call fcn.18005bdc
lea eax, [esp + 0x60]
mov edx, edi
push eax
lea ecx, [esp + 0x28]
call fcn.180114a5
pop ecx
mov ecx, dword [esp + 0x60]
lea ecx, [ecx - 0x10]
call fcn.18003140
push dword [esp + 0x10]
lea ecx, [esp + 0x7c]
call fcn.18005bdc
push dword [esp + 0x24]
lea ecx, [esp + 0x74]
call fcn.18005bdc
lea edx, [esp + 0x70]
lea ecx, [esp + 0x78]
call fcn.18037202
test al, al
je 0x18037ec6
xor ebx, ebx
lea ecx, [esp + 0x64]
push str..exe
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.18005bdc
lea eax, [esp + 0x28]
push 0x18007158
push eax
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x2c]
call fcn.1801139c
pop ecx
pop ecx
mov ecx, dword [esp + 0x64]
mov esi, eax
add ecx, 0xfffffff0
call fcn.18003140
test esi, esi
js 0x18037ca8
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
sar eax, 2
test eax, eax
je 0x18037ca8
push dword [esp + 0x28]
lea edx, [esp + 0x28]
lea ecx, [esp + 0xbc]
call fcn.180114a5
pop ecx
push eax
lea ecx, [esp + 0x14]
call fcn.18005b84
mov ecx, dword [esp + 0xb8]
jmp 0x18037d0f
push str..exe
lea ecx, [esp + 0x6c]
call fcn.18005bdc
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x28]
call fcn.180117be
pop ecx
mov ecx, dword [esp + 0x68]
mov esi, eax
add ecx, 0xfffffff0
call fcn.18003140
test esi, esi
js 0x18037d17
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
sub eax, esi
sar eax, 2
test eax, eax
je 0x18037d1b
push esi
lea edx, [esp + 0x28]
lea ecx, [esp + 0xb4]
call fcn.180114a5
pop ecx
push eax
lea ecx, [esp + 0x14]
call fcn.18005b84
mov ecx, dword [esp + 0xb0]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov esi, dword [esp + 0x28]
test esi, esi
je 0x18037d5e
mov edi, dword [esp + 0x2c]
cmp esi, edi
je 0x18037d3c
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.18003140
add esi, 4
cmp esi, edi
jne 0x18037d27
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
sub eax, esi
and eax, 0xfffffffc
push eax
push esi
call fcn.180064b3
mov edi, dword [esp + 0x24]
pop ecx
pop ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x70]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [esp + 0x78]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [esp + 0x24]
lea ecx, [ecx - 0x10]
call fcn.18003140
lea ecx, [esp + 0x120]
call fcn.18036655
xor ebx, ebx
lea eax, [esp + 0x120]
cmp byte [esp + 0x38], bl
mov ecx, esi
push eax
setne bl
call fcn.1803595c
lea edx, [ebx + 2]
lea ecx, [eax + 0x14]
call fcn.18037174
pop ecx
test al, al
je 0x18037f0c
mov eax, dword [esp + 0x128]
cmp dword [eax - 0xc], 0
je 0x18037e62
push str.unzip
lea ecx, [esp + 0x78]
call fcn.18005bdc
lea eax, [esp + 0x74]
mov edx, edi
push eax
lea ecx, [esp + 0x48]
call fcn.180114a5
pop ecx
mov ecx, dword [esp + 0x74]
lea ecx, [ecx - 0x10]
call fcn.18003140
lea eax, [esp + 0x128]
push eax
lea edx, [esp + 0x48]
lea ecx, [esp + 0x58]
call fcn.180114a5
pop ecx
push dword [esp + 0x54]
lea ecx, [esp + 0x9c]
call fcn.18005bdc
mov esi, dword [esp + 0x98]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esi - 0x10]
mov edi, eax
call fcn.18003140
test edi, edi
je 0x18037e4a
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x14]
call fcn.18005b84
mov ecx, dword [esp + 0x54]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [esp + 0x44]
lea ecx, [ecx - 0x10]
call fcn.18003140
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x44]
call fcn.18005b84
cmp byte [esp + 0x38], 0
je 0x18037f0c
push 0x10
lea eax, [esp + 0x150]
push 0x180db1c4
push eax
call fcn.180a92a1
mov ebx, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jne 0x18037f10
mov ecx, ebx
call fcn.1802df31
mov ecx, eax
call fcn.180278c0
push dword [eax]
lea eax, [esp + 0x44]
push str.sessionid
push str.___s___s_
push eax
call fcn.18011d33
add esp, 0x10
jmp 0x18037f10
push str.Unzip_error_
lea ecx, [esp + 0x70]
call fcn.18005bdc
and dword [esp + 0xe4], 0
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0xe4]
mov dword [esp + 0xe4], 0x80004005
push eax
mov ecx, ebx
call fcn.1802f4cb
mov ecx, dword [esp + 0x6c]
lea ecx, [ecx - 0x10]
call fcn.18003140
jmp 0x18037d62
mov ebx, dword [esp + 0x14]
lea edi, [ebx + 8]
mov eax, dword [edi]
xchg dword [edi], eax
add eax, 4
lea ecx, [esp + 0xe8]
push eax
call fcn.18011b0a
mov ecx, dword [ebx + 0xc8]
cmp dword [ecx - 0xc], 0
je 0x18037f38
add ecx, 0xfffffff0
jmp 0x18037f41
mov ecx, dword [ebx + 0xcc]
sub ecx, 0x10
call fcn.180060dc
mov ecx, dword [esp + 0xe8]
lea esi, [eax + 0x10]
mov eax, dword [ecx]
call dword [eax + 8]
lea eax, [esp + 0x9c]
mov dword [esp + 0x9c], esi
push eax
lea ecx, [esp + 0x4c]
call fcn.18005b84
lea ecx, [esi - 0x10]
call fcn.18003140
mov ecx, dword [esp + 0x34]
call fcn.1803595c
add eax, 4
lea ecx, [esp + 0x58]
push eax
call fcn.18005b84
cmp byte [esp + 0x38], 0
jne 0x18037fa6
mov ecx, dword [esp + 0x18]
push ebx
call fcn.18029dc1
mov esi, eax
test esi, esi
js 0x180382bd
lea ecx, [esp + 0x120]
call fcn.18032044
lea ecx, [esp + 0x8c]
call fcn.18011b25
test al, al
jne 0x18037b0b
mov ecx, dword [esp + 0x8c]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, ebx
call fcn.1802df31
mov ecx, eax
call fcn.180278e9
movzx ecx, byte [0x18101323]
neg ecx
mov dword [esp + 0x44], eax
push 7
sbb ecx, ecx
pop edi
and ecx, 0x18101240
je 0x180380ae
push 1
push edi
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xfc], edi
mov dword [esp + 0x100], 1
call fcn.1800457f
mov dword [esp + 0xfc], eax
mov ecx, ebx
lea eax, [esp + 0xa4]
push eax
call fcn.1802e737
lea edx, [esp + 0x14c]
lea ecx, [esp + 0xa0]
mov edi, dword [eax]
call fcn.18008e1d
mov ecx, ebx
mov esi, dword [eax]
lea eax, [esp + 0x14]
push eax
call fcn.1802e1aa
push dword [esp + 0x44]
push edi
push dword [esp + 0x50]
push dword [esp + 0x4c]
push dword [esp + 0x20]
push esi
push dword [eax]
lea eax, [esp + 0x10c]
push str._Installing__display_name:__s__app_id:__s__installer_path:__s__manifest_args:__s__installer_data:__s__untrusted_data:__s__priority:__d_
push eax
call fcn.18002ca6
mov ecx, dword [esp + 0x38]
add esp, 0x24
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [esp + 0xa0]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [esp + 0xa4]
lea ecx, [ecx - 0x10]
call fcn.18003140
push 7
pop edi
lea ecx, [esp + 0xc4]
call fcn.18036683
push 3
mov ecx, ebx
call fcn.1802f226
lea eax, [esp + 0xb4]
mov ecx, ebx
push eax
call fcn.1802e737
lea ecx, [esp + 0xc4]
push ecx
push dword [esp + 0x48]
mov ecx, dword [esp + 0x64]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x168]
push eax
push dword [esp + 0xc8]
call fcn.1803f8c6
mov ecx, dword [esp + 0xb4]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.18003140
push 4
mov ecx, ebx
call fcn.1802f226
movzx ecx, byte [0x18101323]
neg ecx
sbb ecx, ecx
and ecx, 0x18101240
je 0x180381ae
xor eax, eax
mov dword [esp + 0x100], ecx
inc eax
mov dword [esp + 0x104], edi
push eax
push edi
mov dword [esp + 0x110], eax
call fcn.1800457f
lea edx, [esp + 0x14c]
mov dword [esp + 0x10c], eax
lea ecx, [esp + 0x5c]
call fcn.18008e1d
push dword [esp + 0xd4]
push dword [esp + 0xd4]
push dword [esp + 0xd0]
push dword [esp + 0xd0]
push dword [eax]
lea eax, [esp + 0x114]
push esi
push str._InstallApp_returned__0x_x___s__type:_d__code:__d___s___s_
push eax
call fcn.18002ca6
mov ecx, dword [esp + 0x7c]
add esp, 0x20
lea ecx, [ecx - 0x10]
call fcn.18003140
push dword [esp + 0x7c]
lea ecx, [esp + 0xac]
call fcn.18011b0a
test esi, esi
js 0x1803837d
push 0x10
lea eax, [esp + 0x150]
push eax
push 0x180db1c4
call fcn.180a92a1
add esp, 0xc
test eax, eax
je 0x18038236
mov edi, dword [esp + 0x18]
mov ecx, edi
push ebx
call fcn.1802a376
mov esi, eax
test esi, esi
js 0x18038381
push dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x5c]
push dword [esp + 0x50]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.180358c1
push eax
lea eax, [esp + 0x15c]
push eax
call fcn.1803f78b
mov ecx, dword [esp + 0x4c]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.18003140
test esi, esi
js 0x18038381
lea edx, [esp + 0xc4]
mov ecx, ebx
call fcn.180384c7
mov dl, byte [esp + 0x23]
mov ecx, ebx
call fcn.1803859b
mov esi, eax
test esi, esi
jns 0x180382a7
movzx ecx, byte [0x18101323]
neg ecx
sbb ecx, ecx
and ecx, 0x18101240
je 0x180382a7
push 7
pop edx
push 6
pop eax
push eax
push edx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], eax
call fcn.1800457f
push esi
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x80]
push str._ASUS__BackupInstallerLog__0x_08x_
push eax
call fcn.18002ca6
add esp, 0xc
lea eax, [esp + 0xc4]
mov ecx, ebx
push eax
call fcn.1802f497
xor esi, esi
jmp 0x1803841c
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c]
call fcn.18005c3b
push eax
mov edx, esi
lea ecx, [esp + 0x24]
call fcn.1803ee46
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.18003140
and dword [esp + 0x50], 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x50]
mov dword [esp + 0x50], esi
push eax
mov ecx, ebx
call fcn.1802f4cb
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.18003140
lea ecx, [esp + 0x120]
call fcn.18032044
jmp 0x1803836c
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x18]
call fcn.18005c3b
mov esi, 0x80004005
lea ecx, [esp + 0x1c]
push eax
mov edx, esi
call fcn.1803ee46
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.18003140
and dword [esp + 0x50], 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x50]
mov dword [esp + 0x50], esi
push eax
mov ecx, ebx
call fcn.1802f4cb
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [esp + 0x8c]
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x18038434
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x38], 0
jne 0x180383ba
lea eax, [esp + 0x15c]
mov ecx, ebx
push eax
call fcn.1802dfe9
push eax
mov ecx, edi
call fcn.18028f35
test al, al
jne 0x180383ba
lea eax, [esp + 0x16c]
mov ecx, ebx
push eax
call fcn.1802dfe9
push eax
mov ecx, edi
call fcn.1802b12c
cmp esi, 0x80040902
jne 0x180383d3
lea eax, [esp + 0xc4]
mov ecx, ebx
push eax
call fcn.1802f497
jmp 0x1803841c
lea eax, [esp + 0x3c]
mov edx, esi
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
call fcn.1803ee46
mov eax, dword [esp + 0xd4]
pop ecx
pop ecx
mov dword [esp + 0x80], eax
mov ecx, ebx
lea eax, [esp + 0x1c]
mov dword [esp + 0x7c], esi
push eax
lea eax, [esp + 0x80]
push eax
call fcn.1802f4cb
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [esp + 0xa8]
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [esp + 0xc4]
call fcn.180384a2
mov ecx, dword [esp + 0x3c]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [esp + 0x118]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esp + 0x58]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [esp + 0x48]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [esp + 0x40]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [esp + 0xbc]
add ecx, 0xfffffff0
call fcn.18003140
mov ecx, dword [esp + 0x17c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.180a61d8
mov esp, ebp
pop ebp
ret