Function at 0x478550
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500952
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x53e300]
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 esi, ecx
mov dword [ebp - 0x2bc], esi
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x54]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2c0], eax
mov dword [ebp - method._BaseModule::CAutoLocker.virtual_0], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x2d8], ecx
test ecx, ecx
je 0x4785ae
mov eax, dword [ecx]
push ecx
call dword [eax]
cmp byte [esi + 0x50], 0
mov dword [ebp - 4], 0
je 0x4785c2
mov bl, 1
jmp 0x478f80
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4785c7
sub ecx, edx
add esi, 0x70
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.0044758c
xor bl, bl
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4785ee
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x478f80
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 0x478624
mov esi, dword [esi]
lea eax, [ebp - 0x248]
push eax
push esi
call fcn.00483dc0
add esp, 8
test eax, eax
jne 0x478678
mov edx, dword [ebp - 0x234]
mov byte [ebp - 4], al
cmp edx, 0x10
jb 0x478f65
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x478f5b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478fb7
jmp 0x478f5b
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0xf
mov byte [ebp - 0x290], 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.004099e0
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00499160
mov edx, dword [ebp - 0x21c]
add esp, 0xc
test eax, eax
mov byte [ebp - 4], 2
sete bh
cmp edx, 0x10
jb 0x478728
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47871e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478fbc
push edx
push ecx
call fcn.004597cb
add esp, 8
test bh, bh
je 0x4787ca
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x27c]
cmp edx, 0x10
jb 0x47876e
mov ecx, dword [ebp - 0x290]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x478764
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478fc1
push edx
push ecx
call fcn.004597cb
add esp, 8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0xf
mov byte [ebp - 0x290], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x478f65
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x478f5b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478fc6
jmp 0x478f5b
lea ecx, [ebp - 0x2f4]
call fcn.004819a0
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x2f4]
call fcn.00483080
test al, al
jne 0x478815
lea ecx, [ebp - 0x2f4]
call fcn.0047b8c0
lea ecx, [ebp - 0x290]
call fcn.00406380
lea ecx, [ebp - 0x248]
call fcn.00406380
jmp 0x478f80
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.004099e0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x2f4]
call fcn.00481eb0
mov edi, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x2d4], edi
call fcn.00406380
call fcn.004527f0
mov ecx, eax
test ecx, ecx
je 0x478fcb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2ac], eax
push 0x50b600
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 6
call fcn.0040ec20
test al, al
jne 0x4788b6
push 0
push 0x50b600
lea ecx, [ebp - 0x2ac]
call fcn.0040c6c0
push 7
push str.version
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 7
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.004099e0
push 0xfde9
lea eax, [ebp - 0x2ac]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x2f4]
call fcn.00482e30
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 9
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478920
mov ebx, dword [ebp - 0x2bc]
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x18]
call fcn.0044758c
mov edx, dword [ebp - 0x2b4]
or eax, 0xffffffff
mov byte [ebp - 4], 8
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x478961
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x230]
call fcn.00406380
mov edx, dword [ebp - 0x2ac]
or eax, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47898e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
mov dword [ebp - 0x2b4], esi
test edi, edi
jle 0x478f3d
push dword [ebp - 0x2c0]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
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.004099e0
push esi
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x2f4]
call fcn.00481bd0
mov ecx, eax
call fcn.0047c010
push eax
lea ecx, [ebp - 0x30c]
call fcn.00481940
mov edx, dword [ebp - 0x24c]
mov byte [ebp - 4], 0xc
cmp edx, 0x10
jb 0x478a48
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x478a3e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478fb7
push edx
push ecx
call fcn.004597cb
add esp, 8
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
call fcn.004527f0
mov ecx, eax
test ecx, ecx
je 0x478fcb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2ac], eax
push 0x50b600
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 0xd
call fcn.0040ec20
test al, al
jne 0x478aaa
push 0
push 0x50b600
lea ecx, [ebp - 0x2ac]
call fcn.0040c6c0
push 0xa
push str.product_id
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.004099e0
push 0xfde9
lea eax, [ebp - 0x2ac]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x30c]
call fcn.00482e30
mov edx, dword [eax]
xor eax, eax
mov ecx, edx
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478b30
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x278]
call fcn.0044758c
mov edx, dword [ebp - 0x2c4]
or eax, 0xffffffff
mov byte [ebp - 4], 0x12
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x478b6e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0x13
cmp edx, 0x10
jb 0x478bac
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x478ba2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478fb7
push edx
push ecx
call fcn.004597cb
add esp, 8
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
mov edx, dword [ebp - 0x2ac]
or eax, 0xffffffff
mov byte [ebp - 4], 0x14
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x478be9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004527f0
mov ecx, eax
test ecx, ecx
je 0x478fcb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2b0], eax
push 0x50b600
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 0x15
call fcn.0040ec20
test al, al
jne 0x478c30
push 0
push 0x50b600
lea ecx, [ebp - 0x2b0]
call fcn.0040c6c0
push 0x11
push str.main_process_name
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
call fcn.004099e0
push 0xfde9
lea eax, [ebp - 0x2b0]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x2c8]
push eax
lea ecx, [ebp - 0x30c]
call fcn.00482e30
mov edx, dword [eax]
xor eax, eax
mov ecx, edx
mov byte [ebp - 4], 0x18
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478cb2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2a8]
call fcn.0044758c
mov edx, dword [ebp - 0x2c8]
or eax, 0xffffffff
mov byte [ebp - 4], 0x1a
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x478cf0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24c]
mov byte [ebp - 4], 0x1b
cmp edx, 0x10
jb 0x478d2e
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x478d24
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478fb7
push edx
push ecx
call fcn.004597cb
add esp, 8
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
mov edx, dword [ebp - 0x2b0]
or eax, 0xffffffff
mov byte [ebp - 4], 0x1c
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x478d6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x294], 8
lea eax, [ebp - 0x2a8]
cmovae eax, dword [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x218]
push eax
call edi
cmp dword [ebx + 0x10], 0
jne 0x478dc6
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x478dc6
lea eax, [ebp - 0x278]
cmp ebx, eax
je 0x478dc6
cmp dword [ebp - 0x264], 8
mov ecx, ebx
push dword [ebp - 0x268]
cmovae eax, dword [ebp - 0x278]
push eax
call fcn.0044758c
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebx + 0x88]
call fcn.004738b0
mov esi, eax
cmp esi, dword [ebx + 0x88]
je 0x478dfc
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebx + 0x88]
call fcn.00473f70
test al, al
je 0x478e44
lea eax, [ebp - 0x278]
mov dword [ebp - 0x2cc], eax
lea ecx, [ebx + 0x88]
lea eax, [ebp - 0x2b5]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 0x51a1d5
call fcn.00472dd0
push eax
add eax, 0x10
lea ecx, [ebx + 0x88]
push eax
push esi
lea eax, [ebp - 0x2d0]
push eax
call fcn.00473450
mov esi, dword [ebp - 0x2d0]
lea eax, [ebp - 0x30c]
push eax
lea ecx, [esi + 0x28]
call fcn.00481b10
mov edx, dword [ebp - 0x294]
mov byte [ebp - 4], 0x14
cmp edx, 8
jb 0x478e97
mov ecx, dword [ebp - 0x2a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x478e8d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478fb7
push edx
push ecx
call fcn.004597cb
add esp, 8
mov edx, dword [ebp - 0x264]
xor eax, eax
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
mov byte [ebp - 4], 0xc
cmp edx, 8
jb 0x478ef8
mov ecx, dword [ebp - 0x278]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x478eee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478fb7
push edx
push ecx
call fcn.004597cb
add esp, 8
xor eax, eax
mov dword [ebp - 0x268], 0
lea ecx, [ebp - 0x30c]
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
mov byte [ebp - 4], 4
call fcn.0047b8c0
mov esi, dword [ebp - 0x2b4]
inc esi
mov dword [ebp - 0x2b4], esi
cmp esi, dword [ebp - 0x2d4]
jl 0x47899e
mov esi, dword [ebp - 0x2bc]
lea ecx, [ebp - 0x2f4]
mov bl, 1
mov byte [esi + 0x50], bl
call fcn.0047b8c0
mov byte [ebp - 4], bl
jmp 0x478734
push edx
push ecx
call fcn.004597cb
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov edx, dword [ebp - 0x2d8]
mov dword [ebp - 4], 0x1d
test edx, edx
je 0x478f97
mov ecx, dword [edx]
push edx
call dword [ecx + 4]
mov al, bl
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.004597ba
mov esp, ebp
pop ebp
ret 8
call fcn.004a58da
call fcn.004a58da
call fcn.004a58da
call fcn.004a58da
push 0x80004005
call fcn.0040b8d0
int3