Function at 0x541980
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5abeb1
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x5f237c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x328], esi
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x54]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x334], eax
mov dword [ebp - method._BaseModule::CAutoLocker.virtual_0], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x340], ecx
test ecx, ecx
je 0x5419dd
mov eax, dword [ecx]
push ecx
call dword [eax]
cmp byte [esi + 0x50], 0
mov dword [ebp - 4], 0
je 0x5419f6
mov byte [ebp - 0x321], 1
jmp 0x542457
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x541a00
sub ecx, edx
add esi, 0x70
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.0040cb10
cmp dword [esi + 0x14], 8
mov eax, esi
mov byte [ebp - 0x321], 0
jb 0x541a2c
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x542457
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
cmp dword [esi + 0x14], 8
mov byte [ebp - 4], 1
jb 0x541a62
mov esi, dword [esi]
lea eax, [ebp - 0x248]
push eax
push esi
call fcn.0053b5a0
add esp, 8
test eax, eax
jne 0x541ab6
mov edx, dword [ebp - 0x234]
mov byte [ebp - 4], al
cmp edx, 0x10
jb 0x54243c
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x542432
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x542491
jmp 0x542432
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], 0
push 0x24
push str.0B366EA2_A363_4D44_965A_A63918D5B6A9
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0040ca10
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00480ab0
mov edx, dword [ebp - 0x21c]
add esp, 0xc
test eax, eax
mov byte [ebp - 4], 2
sete al
mov byte [ebp - 0x322], al
cmp edx, 0x10
jb 0x541b72
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x541b62
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x542496
push edx
push ecx
call fcn.0045a50f
mov al, byte [ebp - 0x322]
add esp, 8
test al, al
je 0x541c14
mov edx, dword [ebp - 0x264]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x541bb8
mov ecx, dword [ebp - 0x278]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x541bae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x54249b
push edx
push ecx
call fcn.0045a50f
add esp, 8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x54243c
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x542432
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5424a0
jmp 0x542432
lea ecx, [ebp - 0x35c]
call fcn.00539e80
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x35c]
call fcn.0053a920
test al, al
jne 0x541c5f
lea ecx, [ebp - 0x35c]
call fcn.005375e0
lea ecx, [ebp - 0x278]
call fcn.00406620
lea ecx, [ebp - 0x248]
call fcn.00406620
jmp 0x542457
push 4
push str.info
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0040ca10
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x35c]
call fcn.0053a0e0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x330], eax
mov byte [ebp - 4], 4
call fcn.00406620
push 0
push 0x5af83c
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0xf
mov byte [ebp - 0x290], 0
call fcn.0040ca10
push 7
push str.version
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 6
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0040ca10
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x35c]
call fcn.0053a720
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 8
jb 0x541d45
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x308]
push eax
call fcn.004811c0
mov edi, dword [ebp - 0x328]
mov esi, eax
add edi, 0x18
add esp, 0xc
cmp edi, esi
je 0x541d93
mov ecx, edi
call fcn.00406670
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x308]
call fcn.00406670
lea ecx, [ebp - 0x2f0]
call fcn.00406620
lea ecx, [ebp - 0x230]
call fcn.00406620
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 4
call fcn.00406620
xor esi, esi
mov dword [ebp - 0x32c], esi
cmp dword [ebp - 0x330], esi
jle 0x5423d9
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.0056acc0
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebp - 0x334]
push eax
call edi
push 4
push str.info
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
call fcn.0040ca10
push esi
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x35c]
call fcn.00539fb0
mov ecx, eax
call fcn.00537880
push eax
lea ecx, [ebp - 0x308]
call fcn.00539e20
mov edx, dword [ebp - 0x24c]
mov byte [ebp - 4], 0xb
cmp edx, 0x10
jb 0x541e97
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x541e8d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x542491
push edx
push ecx
call fcn.0045a50f
add esp, 8
push 0
push 0x5af83c
lea ecx, [ebp - 0x2d8]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 0xf
mov byte [ebp - 0x2d8], 0
call fcn.0040ca10
push 0xa
push str.product_id
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0xf
mov byte [ebp - 0x2c0], 0
call fcn.0040ca10
lea eax, [ebp - 0x2d8]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x2c0]
push eax
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x308]
call fcn.0053a720
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xe
jb 0x541f40
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.004811c0
add esp, 0xc
mov edx, dword [ebp - 0x30c]
mov byte [ebp - 4], 0x10
cmp edx, 0x10
jb 0x541f93
mov ecx, dword [ebp - 0x320]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x541f89
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x542491
push edx
push ecx
call fcn.0045a50f
add esp, 8
mov dword [ebp - 0x310], 0
mov dword [ebp - 0x30c], 0xf
mov byte [ebp - 0x320], 0
mov edx, dword [ebp - 0x2ac]
mov byte [ebp - 4], 0x11
cmp edx, 0x10
jb 0x541fec
mov ecx, dword [ebp - 0x2c0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x541fe2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x542491
push edx
push ecx
call fcn.0045a50f
add esp, 8
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0xf
mov byte [ebp - 0x2c0], 0
mov edx, dword [ebp - 0x2c4]
mov byte [ebp - 4], 0x12
cmp edx, 0x10
jb 0x542045
mov ecx, dword [ebp - 0x2d8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x54203b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x542491
push edx
push ecx
call fcn.0045a50f
add esp, 8
push 0
push 0x5af83c
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 0xf
mov byte [ebp - 0x2d8], 0
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0xf
mov byte [ebp - 0x290], 0
call fcn.0040ca10
push 0x11
push str.main_process_name
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0x13
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
call fcn.0040ca10
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x308]
call fcn.0053a720
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x15
jb 0x5420ee
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004811c0
add esp, 0xc
mov edx, dword [ebp - 0x2dc]
mov byte [ebp - 4], 0x17
cmp edx, 0x10
jb 0x542141
mov ecx, dword [ebp - 0x2f0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x542137
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x542491
push edx
push ecx
call fcn.0045a50f
add esp, 8
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 0x2dc], 0xf
mov byte [ebp - 0x2f0], 0
mov edx, dword [ebp - 0x24c]
mov byte [ebp - 4], 0x18
cmp edx, 0x10
jb 0x54219a
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x542190
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x542491
push edx
push ecx
call fcn.0045a50f
add esp, 8
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
mov edx, dword [ebp - 0x27c]
mov byte [ebp - 4], 0x19
cmp edx, 0x10
jb 0x5421f3
mov ecx, dword [ebp - 0x290]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5421e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x542491
push edx
push ecx
call fcn.0045a50f
add esp, 8
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x280], 0
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x27c], 0xf
push eax
mov byte [ebp - 0x290], 0
call edi
mov esi, dword [ebp - 0x328]
cmp dword [esi + 0x10], 0
jne 0x54226f
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x54226f
lea eax, [ebp - 0x2a8]
cmp esi, eax
je 0x54226f
cmp dword [ebp - 0x294], 8
mov ecx, esi
push dword [ebp - 0x298]
cmovae eax, dword [ebp - 0x2a8]
push eax
call fcn.0040cb10
lea eax, [ebp - 0x2a8]
lea edi, [esi + 0x88]
push eax
mov ecx, edi
call fcn.0053cd80
mov esi, eax
cmp esi, dword [edi]
je 0x5422a0
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.0053c5d0
add esp, 8
test al, al
je 0x5422e0
lea eax, [ebp - 0x2a8]
mov ecx, edi
mov dword [ebp - 0x338], eax
lea eax, [ebp - 0x322]
push eax
lea eax, [ebp - 0x338]
push eax
push 0x5ca67b
call fcn.0053c650
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0x33c]
push eax
call fcn.0053c9e0
mov esi, dword [ebp - 0x33c]
lea eax, [ebp - 0x308]
push eax
lea ecx, [esi + 0x28]
call fcn.00539ef0
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0x12
cmp edx, 8
jb 0x542333
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x542329
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x542491
push edx
push ecx
call fcn.0045a50f
add esp, 8
mov edx, dword [ebp - 0x294]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov byte [ebp - 4], 0xb
cmp edx, 8
jb 0x542394
mov ecx, dword [ebp - 0x2a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x54238a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x542491
push edx
push ecx
call fcn.0045a50f
add esp, 8
xor eax, eax
mov dword [ebp - 0x298], 0
lea ecx, [ebp - 0x308]
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
mov byte [ebp - 4], 4
call fcn.005375e0
mov esi, dword [ebp - 0x32c]
inc esi
mov dword [ebp - 0x32c], esi
cmp esi, dword [ebp - 0x330]
jl 0x541dd7
mov eax, dword [ebp - 0x328]
lea ecx, [ebp - 0x35c]
mov byte [ebp - 0x321], 1
mov byte [eax + 0x50], 1
call fcn.005375e0
mov edx, dword [ebp - 0x264]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x541bb8
mov ecx, dword [ebp - 0x278]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x541bae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5424a5
jmp 0x541bae
push edx
push ecx
call fcn.0045a50f
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov edx, dword [ebp - 0x340]
mov dword [ebp - 4], 0x1a
test edx, edx
je 0x54246e
mov ecx, dword [edx]
push edx
call dword [ecx + 4]
mov al, byte [ebp - 0x321]
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.0045a51d
mov esp, ebp
pop ebp
ret 8
call fcn.0056eeea
call fcn.0056eeea
call fcn.0056eeea
call fcn.0056eeea
call fcn.0056eeea
int3