Function at 0x474430
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b9bcc
mov eax, dword fs:[0]
push eax
sub esp, 0x130
push ebx
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x18], esi
cmp dword [edi], esi
jne 0x474703
lea ebx, [esp + 0x14]
call fcn.004272f0
lea ebx, [edi + 4]
mov edi, ebx
mov dword [esp + 0x148], esi
call fcn.0040a8e0
mov dword [esp + 0x148], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4744b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x4744dd
mov ecx, 0x104
mov eax, ebx
call fcn.004012e0
mov eax, dword [ebx]
push str.installConfig.dat
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebx]
cmp edx, esi
jne 0x4744f5
xor eax, eax
jmp 0x474515
mov eax, edx
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x474500
sub eax, edi
sar eax, 1
js 0x4745bd
cmp eax, dword [edx - 8]
jg 0x4745bd
mov dword [edx - 0xc], eax
mov ecx, dword [ebx]
mov word [ecx + eax*2], si
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4745c7
call fcn.00427c00
test al, al
je 0x474587
cmp dword [0x4e1dac], 3
jg 0x474587
lea edx, [esp + 0x1c]
push edx
mov edi, 0xb6
call fcn.00427cc0
mov ecx, 1
mov dword [esp + 0x148], ecx
mov ebx, dword [ebx]
push ebx
push ecx
add eax, 4
push str.install_config_file_not_exist__file_path_:
push eax
mov dword [esp + 0x28], ecx
call fcn.004049f0
add esp, 0xc
push eax
call fcn.004049f0
add esp, 8
mov dword [esp + 0x148], 0xffffffff
test byte [esp + 0x18], 1
je 0x4745a3
lea eax, [esp + 0x1c]
push eax
call fcn.00427d40
xor eax, eax
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004013e0
mov edx, dword [0x4e3844]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e3844
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov esi, 2
lea ecx, [esp + 0x14]
mov dword [esp + 0x148], esi
mov ebx, dword [ebx]
push ecx
push ebx
call fcn.004742d0
test eax, eax
jne 0x4746a3
call fcn.00427c00
test al, al
je 0x474643
mov ebx, 3
cmp dword [0x4e1dac], ebx
jg 0x474643
lea edx, [esp + 0xac]
push edx
mov edi, 0xbd
call fcn.00427cc0
add eax, 4
push str.decrypt_install_config_file_failed
mov byte [esp + 0x14c], bl
push eax
mov dword [esp + 0x20], esi
call fcn.004049f0
add esp, 8
mov dword [esp + 0x148], esi
test byte [esp + 0x18], 2
je 0x47465e
lea eax, [esp + 0xac]
push eax
call fcn.00427d40
mov dword [esp + 0x148], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x474689
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp + 8]
lea ebx, [esi + 0x24]
lea eax, [esp + 0x14]
call fcn.0045dde0
push esi
lea ecx, [esp + 0x18]
call fcn.00474720
test eax, eax
jne 0x4746e3
lea eax, [esp + 0x14]
call fcn.004171b0
xor eax, eax
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.004749e0
call fcn.00474ba0
push esi
call fcn.00474bf0
lea eax, [esp + 0x14]
mov dword [esi], 1
call fcn.004171b0
mov eax, 1
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4