Function at 0x479f30
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp], ecx
test eax, eax
jne 0x479f44
add esp, 0x1c
ret 8
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov esi, dword [esp + 0x2c]
mov ecx, dword [esi]
push edi
push 0
lea ebx, [eax + 4]
lea eax, [esp + 0x20]
push eax
push 0x40c
push ecx
call ebp
mov edi, dword [esp + 0x1c]
mov edx, dword [esi]
push 0
push edi
push 0x40f
push edx
call ebp
mov ebp, eax
test eax, eax
jne 0x479f82
mov ebp, 0x4bad64
mov eax, dword [esi]
push 0
push edi
push 0x40e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x47a11d
push 0
push eax
push 0
push eax
push ebp
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebx
call fcn.00412930
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
test ecx, ecx
jle 0x479fbf
cmp dword [eax], 0
jne 0x479fd8
test eax, eax
je 0x479fcc
push eax
call fcn.0049e944
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 8
cmp ecx, 4
jle 0x47a114
mov edi, dword [eax + 0x10]
cmp edi, 0xffffffff
je 0x47a114
cmp ecx, 5
jg 0x479ff7
or esi, 0xffffffff
jmp 0x479ffa
mov esi, dword [eax + 0x14]
mov edx, dword [0x514540]
mov eax, dword [edx + 0xc]
mov ecx, 0x514540
call eax
sub esi, edi
push esi
lea ecx, [ebp + edi*2]
add eax, 0x10
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], eax
call fcn.004020b0
mov edx, dword [esp + 0x30]
cmp dword [edx - 0xc], 0
je 0x47a10b
lea ecx, [esp + 0x34]
call fcn.00401e50
push 2
lea ecx, [esp + 0x20]
xor edi, edi
call fcn.004152e0
mov esi, eax
cmp esi, 0xffffffff
je 0x47a07f
push 2
lea ecx, [esp + 0x20]
call fcn.00415300
sub eax, esi
push eax
lea eax, [ebp + esi*2]
push eax
lea ecx, [esp + 0x3c]
call fcn.004020b0
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004a0ed3
mov edi, eax
add esp, 4
sub edi, 1
jns 0x47a07f
xor edi, edi
push 3
lea ecx, [esp + 0x20]
xor ebx, ebx
call fcn.004152e0
mov esi, eax
cmp esi, 0xffffffff
je 0x47a0c7
lea ecx, [esp + 0x34]
call fcn.00401a80
push 3
lea ecx, [esp + 0x20]
call fcn.00415300
sub eax, esi
push eax
lea edx, [ebp + esi*2]
push edx
lea ecx, [esp + 0x3c]
call fcn.004020b0
mov eax, dword [esp + 0x34]
push eax
call fcn.004a0ed3
add esp, 4
mov ebx, eax
mov ecx, dword [esp + 0x30]
mov ebp, dword [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.0046f840
mov esi, eax
test esi, esi
je 0x47a129
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
cmp eax, str.LEDIT32
je 0x47a129
mov edx, dword [esi]
mov eax, dword [edx]
push 0
push 0
push 7
mov ecx, esi
call eax
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x34]
call fcn.00412910
lea ecx, [esp + 0x30]
call fcn.00412910
lea ecx, [esp + 0x1c]
call fcn.0040edc0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 8
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
mov eax, esi
test esi, esi
jne 0x47a17a
mov esi, dword [esp + 0x30]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, ebp
test eax, eax
je 0x47a15d
push 0
push esi
call fcn.00479b00
test eax, eax
je 0x47a19b
mov ecx, ebp
call fcn.00481510
jmp 0x47a176
call fcn.00481510
mov esi, eax
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
cmp eax, str.LEDIT32
jne 0x47a19b
mov eax, esi
test eax, eax
je 0x47a19b
mov ecx, eax
call fcn.00457ff0
push 0
lea ecx, [esp + 0x18]
lea esi, [eax + 4]
push ecx
mov ecx, esi
call fcn.0042ecd0
push 0x3b
mov ecx, esi
call fcn.0042ed10
lea ecx, [esp + 0x34]
call fcn.00412910
lea ecx, [esp + 0x30]
call fcn.00412910
lea ecx, [esp + 0x1c]
call fcn.0040edc0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 8