Function at 0x100180d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a4fb2
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x100d76a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x5c], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 1
call fcn.10014aa0
test al, al
je 0x10018436
lea eax, [ebp - 0x58]
push eax
call fcn.10056fc0
add esp, 4
mov edi, eax
mov eax, dword [edi]
mov dword [ebp - 4], 2
mov dword [ebp - 0x44], 0
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x10018170
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x10018188
call fcn.10009240
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x10018455
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [ebp - 0x48], 3
lea esi, [eax + 0x10]
mov eax, dword [edi]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x50], eax
mov edi, dword [eax - 0xc]
mov dword [ebp - 0x54], edi
lea edx, [edi + 0x14]
test edx, edx
js 0x1001845f
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x100181cf
push edx
lea ecx, [ebp - 0x44]
call fcn.1000b800
mov esi, dword [ebp - 0x44]
add edi, edi
push edi
push dword [ebp - 0x50]
push edi
push esi
call fcn.1000f250
lea eax, [edi + esi]
add esp, 0x10
test eax, eax
jne 0x100181f8
call fcn.10081c42
mov dword [eax], 0x16
call fcn.10081b69
jmp 0x10018208
push 0x28
push str.PowerCalculator.exe
push eax
call fcn.1007db40
add esp, 0xc
mov eax, dword [ebp - 0x54]
add eax, 0x14
cmp eax, dword [esi - 8]
jg 0x1001845f
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
xor eax, eax
mov dword [ebp - 0x18], ecx
mov ecx, esi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018235
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.1000d240
mov dword [ebp - 0x48], 1
lea edx, [esi - 0x10]
mov byte [ebp - 4], 4
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10018273
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x58]
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1001828f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100183fd
xorps xmm0, xmm0
lea ecx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
movq qword [ebp - 0x30], xmm0
call fcn.1004fc80
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 6
call fcn.10014650
push 0
push 0x100ad7c0
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
call fcn.1000d140
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x40]
call fcn.10050d80
mov esi, dword [ebp - 0x4c]
mov edi, eax
cmp esi, edi
je 0x10018373
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x10018341
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x10018337
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018469
mov eax, edx
push ecx
push eax
call fcn.10060985
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov edx, dword [ebp - 0x7c]
cmp edx, 0x10
jb 0x100183aa
mov ecx, dword [ebp - 0x90]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100183a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018469
push edx
push ecx
call fcn.10060985
add esp, 8
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
cmp edx, 0x10
jb 0x100183f3
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100183e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001846e
push edx
push ecx
call fcn.10060985
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.10048730
jmp 0x10018400
mov esi, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10018436
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001842c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018473
push edx
push ecx
call fcn.10060985
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10060d04
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10007c80
push 0x80070057
call fcn.10007c80
call fcn.10081b79
call fcn.10081b79
call fcn.10081b79
int3