Function at 0x493c80
Capabilities:
Check if file exists

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00494bb0
mov ecx, esi
call fcn.00492cd0
lea ebx, [esi + 0x1de0]
push ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1b9c]
test eax, eax
jne 0x493cb2
xor edx, edx
jmp 0x493ccb
mov ecx, dword [esi + 0x1ba0]
sub ecx, eax
mov eax, 0x18d7d2f9
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
xor edi, edi
test edx, edx
jle 0x493f4b
mov eax, dword [esi + 0x1b9c]
mov ecx, dword [esp + 0x18]
add eax, 0xa38
cmp dword [eax], ecx
je 0x493d01
inc edi
add eax, 0x149c
cmp edi, edx
jl 0x493ce4
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
cmp edi, 0xffffffff
jle 0x493f4b
lea ebp, [esi + 0xb4]
mov ecx, ebp
call fcn.004c6cf0
imul edi, edi, 0x149c
mov ecx, dword [esi + 0x1b9c]
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
add edi, ecx
lea edx, [esi + 0x12d0]
lea ecx, [edi + 0xc]
push ecx
push 0x4e923c
push 0x103
push edx
call ebx
mov eax, dword [edi + 0xa3c]
add esp, 0x10
lea ecx, [edi + 0xa40]
mov dword [esi + 0x1970], eax
push ecx
lea eax, [esi + 0x1974]
push 0x4e923c
push 0x103
push eax
call ebx
add esp, 0x10
lea eax, [edi + 0xe84]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x493daf
lea eax, [edi + 0xe84]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esp + 0x18], eax
je 0x493da8
lea edx, [edi + 0x108c]
lea ecx, [esi + 0x24]
push edx
push eax
call fcn.00479550
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esi + 0x24]
call fcn.0047a250
test eax, eax
jne 0x493dca
lea eax, [esi + 0x1974]
lea ecx, [esi + 0x24]
push eax
call fcn.004796a0
lea eax, [edi + 0xc60]
lea ecx, [esi + 0x1bc0]
push eax
push 0x4e923c
push 0x103
push ecx
call ebx
mov edx, dword [edi + 0xc5c]
add esp, 0x10
mov dword [esi + 0x1bb0], edx
mov eax, dword [edi + 0xc58]
mov dword [esi + 0x1bb8], eax
mov ecx, dword [edi + 0xe68]
mov dword [esi + 0x1b90], ecx
mov edx, dword [edi + 8]
mov dword [esi + 0x1bb4], edx
mov eax, dword [edi + 4]
push 0
push 0
push 0
mov dword [esi + 0x1ba8], eax
mov ecx, dword [edi + 0xe6c]
mov eax, dword [esi + 0x1b90]
push 0
push 0
push 0x1e
mov dword [esi + 0x1bbc], ecx
mov ecx, dword [esi + 0x1bb0]
mov edx, dword [edi + 0xe70]
push eax
push 0
push str.MASKINFO.PNG
push ecx
push str.TP_BG.PNG
mov ecx, ebp
mov dword [esi + 0x1dcc], edx
call fcn.004c59f0
push 0x96
push 0
mov ecx, ebp
call fcn.004c7020
mov dword [esi + 0xe8], 1
mov al, byte [edi + 8]
test al, 1
je 0x493e9e
lea edx, [edi + 0x214]
lea eax, [esi + 0x14d8]
push edx
push 0x4e923c
push 0x104
push eax
call ebx
add esp, 0x10
cmp dword [edi + 4], 1
jl 0x493ec7
mov eax, dword [edi + 0xc4c]
mov edx, dword [ebp]
push 0
push eax
push 0x1388
push 0xffffffffffffffff
lea ecx, [edi + 0x41c]
push 0
push ecx
push 0
mov ecx, ebp
call dword [edx + 0x18]
cmp dword [edi + 4], 2
jl 0x493ef0
mov eax, dword [edi + 0xc50]
mov edx, dword [ebp]
push 0
push eax
push 0x1389
push 0xffffffffffffffff
lea ecx, [edi + 0x624]
push 0
push ecx
push 0
mov ecx, ebp
call dword [edx + 0x18]
cmp dword [edi + 4], 3
jl 0x493f19
mov eax, dword [edi + 0xc54]
mov edx, dword [ebp]
push 0
push eax
push 0x138a
push 0xffffffffffffffff
lea ecx, [edi + 0x82c]
push 0
push ecx
push 0
mov ecx, ebp
call dword [edx + 0x18]
mov edx, dword [edi + 0xa38]
mov ecx, esi
mov dword [esi + 0x1bac], edx
call fcn.00494100
cmp dword [edi], 0
jne 0x493f39
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi], eax
mov eax, dword [esi + 4]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4