Function at 0x414790
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd108
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x54c728]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x84], edi
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4147cf
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414b09
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.004316f0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push 0xfde9
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004ab930
add esp, 0x14
mov byte [ebp - 4], 1
call fcn.00414410
mov ecx, eax
test ecx, ecx
je 0x414c7e
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7c]
push 0x50ac10
call fcn.00413920
test al, al
jne 0x414850
push 0x24
push 0x50ac10
lea ecx, [ebp - 0x7c]
call fcn.004154a0
mov byte [ebp - 4], 3
lea esi, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae esi, dword [ebp - 0x58]
call fcn.00414410
mov ecx, eax
test ecx, ecx
je 0x414c88
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
push esi
call fcn.00413920
test al, al
jne 0x4148b9
test esi, esi
jne 0x414894
xor ecx, ecx
jmp 0x4148af
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4148a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x78]
call fcn.004154a0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004aaf60
add esp, 0xc
mov byte [ebp - 4], 6
mov edx, dword [eax]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4148e0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.004042a0
mov byte [ebp - 4], 5
or esi, 0xffffffff
mov edx, dword [ebp - 0x80]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41491a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x78]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414938
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x7c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x414954
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push 0xfde9
cmovae eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004ab7f0
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4149e6
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4149b2
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4149a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414c92
push edx
push ecx
call fcn.004a96a6
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x414a1e
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x414a14
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414c97
push edx
push ecx
call fcn.004a96a6
add esp, 8
lea ecx, [edi + 0x38]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.0042f520
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
mov dword [ebp - 0x30], 0
cmovae esi, dword [ebp - 0x28]
mov edx, esi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x414a68
sub edx, ecx
lea ecx, [ebp - 0x40]
push edx
push esi
call fcn.004083c0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x40]
push eax
lea ecx, [edi + 0x38]
call fcn.0042fe80
test al, al
sete al
mov byte [ebp - 0x71], al
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x414ace
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x414ac1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414c9c
push edx
push ecx
call fcn.004a96a6
mov al, byte [ebp - 0x71]
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
test al, al
je 0x414bde
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00402770
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405b20
mov edi, dword [ebp - 0x84]
push 0xc
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0
push str.user_setting
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.004083c0
mov dword [ebp - 4], 0xc
lea eax, [ebp - 0x40]
push eax
lea ecx, [edi + 0x38]
call fcn.0042f340
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00405b20
push 7
lea ecx, [ebp - 0x70]
call fcn.0042b5f0
mov dword [ebp - 4], 0xd
lea eax, [ebp - 0x70]
push eax
mov ecx, esi
call fcn.0042be70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.0042bd50
push 0x444
lea ecx, [ebp - 0x70]
call fcn.0042b460
mov dword [ebp - 4], 0xe
lea eax, [ebp - 0x70]
push eax
push str.boss_key
mov ecx, esi
call fcn.0042c390
mov ecx, eax
call fcn.0042be70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.0042bd50
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.004a995c
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x414c1c
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414c12
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414ca1
push edx
push ecx
call fcn.004a96a6
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x414c67
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x414c5d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414ca6
push edx
push ecx
call fcn.004a96a6
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
jmp 0x414bc1
push 0x80004005
call fcn.0040ee20
push 0x80004005
call fcn.0040ee20
call fcn.004d003c
call fcn.004d003c
call fcn.004d003c
call fcn.004d003c
call fcn.004d003c
int3