Function at 0x4c674b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c2252
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x61dc40]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp edi, esi
je 0x4c6a50
mov eax, dword [edi]
cmp eax, esi
jne 0x4c6842
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 4]
mov esi, dword [edi + 0xc]
mov ebx, dword [edi + 8]
push eax
push ecx
push edx
push esi
call fcn.0044612c
push eax
call fcn.00448f67
push dword [edi + 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c67c1
mov ecx, dword [edi + 0x14]
call fcn.0047611f
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0x140]
test edi, edi
je 0x4c6832
cmp dword [esi + 0x144], 0
je 0x4c6832
push 1
lea ebx, [esp + 0x18]
call fcn.0051e817
and dword [esp + 0x48], 0
call fcn.0041a452
call fcn.0041a497
mov edi, dword [esi + 0x144]
push 1
lea ebx, [esp + 0x1c]
call fcn.0051e817
mov byte [esp + 0x48], 1
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.0044612c
push eax
call fcn.00446c04
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00407b6b
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00407b6b
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4c6a50
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x138]
cmp ecx, esi
je 0x4c6852
mov dword [ecx + 0x4c], esi
cmp eax, 4
mov dword [esp + 0x14], str.vU_1Y_
jg 0x4c6950
je 0x4c6946
cmp eax, 0xefffffff
je 0x4c68b7
cmp eax, 0xf0000000
je 0x4c68aa
cmp eax, 0xffffd8f1
je 0x4c6982
cmp eax, 1
je 0x4c689d
cmp eax, 2
jne 0x4c6994
mov dword [esp + 0x14], 0x5f4db4
jmp 0x4c6994
mov dword [esp + 0x14], str._u7b_rT_h
jmp 0x4c6994
mov dword [esp + 0x14], 0x5f4d50
jmp 0x4c6994
mov dword [esp + 0x14], 0x5f4d6c
mov eax, dword [ebx + 0x138]
cmp eax, esi
je 0x4c6994
mov dword [eax + 0x4c], 1
mov eax, 0xe9
lea ecx, [eax + 6]
lea edx, [eax - 0x2a]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], 0xda
mov dword [esp + 0x1c], edx
cmp dword [edi + 0x18], esi
jne 0x4c691b
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], 0xf8
lea esi, [esp + 0x2c]
lea edi, [esp + 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0xc]
lea esi, [esp + 0x1c]
call fcn.00513934
push dword [esp + 0x28]
mov eax, dword [ebx + 0x138]
push dword [esp + 0x28]
add eax, 4
push dword [esp + 0x28]
push dword [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_SetRect]
jmp 0x4c6994
mov dword [esp + 0x14], 0x5f4dc0
jmp 0x4c6994
sub eax, 6
je 0x4c698c
sub eax, 0xa
je 0x4c696b
dec eax
je 0x4c6982
sub eax, 0xf0
je 0x4c6978
sub eax, 0x1acc7
jne 0x4c6994
mov dword [esp + 0x14], 0x5f4df0
jmp 0x4c68bf
mov dword [esp + 0x14], 0x5f4e28
jmp 0x4c6994
mov dword [esp + 0x14], 0x5f4e38
jmp 0x4c6994
mov dword [esp + 0x14], 0x5f4dd0
lea eax, [ebx + 0x13c]
cmp dword [eax], 0
je 0x4c69ae
mov eax, dword [eax]
mov edx, dword [eax]
push 0
push dword [esp + 0x18]
mov ecx, eax
call dword [edx + 0x64]
push dword [edi + 0x18]
mov edi, ebx
call fcn.004c5df8
lea edi, [ebx + 0x150]
mov esi, edi
call fcn.004078db
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x18], 0
je 0x4c6a08
lea eax, [esi + 0x1c]
call fcn.0040a3cc
lea edi, [ebx + 0x154]
mov ebx, dword [esi + 0x20]
push 0
push 1
mov eax, edi
call fcn.00519317
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x128]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x4c6a08
and dword [eax + 0x38], 0
mov dword [eax + 0x34], edi
mov dword [eax + 0x3c], 1
cmp dword [ebx + 0x14c], 0
je 0x4c6a32
mov ecx, dword [ebx + 0x14c]
mov eax, dword [ecx]
push 0
push 0x5efd44
call dword [eax + 0x64]
mov eax, dword [ebx + 0x14c]
push 0
xor ecx, ecx
call fcn.0051b72c
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
push dword [ebx + 4]
call fcn.005266c1
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8