Function at 0x493070
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f75e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x529748]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1d0], esi
mov edi, dword [ebp + 8]
mov eax, edi
mov dword [ebp - 0x1cc], edi
mov dword [ebp - 0x20], 0
cmp edi, 4
jne 0x4930bf
mov eax, dword [esi + 8]
dec eax
je 0x4930d2
dec eax
je 0x4930ca
lea eax, [esi + 4]
jmp 0x4930d8
mov eax, dword [esi + 0x24]
add eax, 0x20
jmp 0x4930d8
mov eax, dword [esi + 0x24]
add eax, 0x1c
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4930eb
xor al, al
jmp 0x493796
push 0x70
lea eax, [ebp - 0x14c]
push 0
push eax
call fcn.004c1b90
add esp, 0xc
lea ecx, [ebp - 0x14c]
call fcn.00407f00
mov dword [ebp - 4], 0
mov eax, edi
cmp edi, 4
jne 0x49311a
mov eax, dword [esi + 8]
cmp eax, 1
jne 0x493124
mov eax, dword [esi + 0x1c]
jmp 0x493127
mov eax, dword [esi + 0x20]
cmp byte [eax + 8], 0
je 0x493157
mov eax, edi
cmp edi, 4
jne 0x493137
mov eax, dword [esi + 8]
cmp eax, 1
jne 0x493141
mov eax, dword [esi + 0x1c]
jmp 0x493144
mov eax, dword [esi + 0x20]
mov al, byte [eax + 8]
test al, al
je 0x493738
cmp al, 7
je 0x493738
push 0x54
lea eax, [ebp - 0xa4]
push 0
push eax
call fcn.004c1b90
add esp, 0xc
lea ecx, [ebp - 0xa4]
call fcn.00411220
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa4], 0x5131b4
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x74], eax
mov eax, dword [0x530710]
mov byte [ebp - 0x58], 0
mov byte [ebp - 0x5f], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x64], 0
mov byte [ebp - 4], 1
cmp edi, 4
jne 0x49321d
mov eax, dword [esi + 8]
jmp 0x49321f
mov eax, edi
dec eax
je 0x493232
dec eax
je 0x49322a
lea eax, [esi + 4]
jmp 0x493238
mov eax, dword [esi + 0x24]
add eax, 0x20
jmp 0x493238
mov eax, dword [esi + 0x24]
add eax, 0x1c
push 0x40
push 1
push dword [eax]
lea ecx, [ebp - 0xa4]
call fcn.00496930
test eax, eax
je 0x49372d
push 0x60
lea eax, [ebp - 0x1ac]
push 0
push eax
call fcn.004c1b90
mov dword [ebp - 0x1ac], 0x5131fc
add esp, 8
mov byte [ebp - 4], 2
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x20], 2
xorps xmm0, xmm0
mov dword [ebp - 0x194], 0x513254
lea ecx, [ebp - 0x194]
mov dword [ebp - 0x198], 0
push eax
movlpd qword [ebp - 0x1a4], xmm0
call fcn.00414540
mov dword [ebp - 4], 3
mov eax, edi
cmp edi, 4
jne 0x4932bb
mov eax, dword [esi + 8]
cmp eax, 1
jne 0x4932c5
mov eax, dword [esi + 0x1c]
jmp 0x4932c8
mov eax, dword [esi + 0x20]
push ecx
push eax
lea eax, [ebp - 0x1ac]
push eax
lea ecx, [ebp - 0x14c]
call fcn.004081e0
xorps xmm0, xmm0
mov byte [ebp - 0x1ae], al
movdqu xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x28], 0
psrldq xmm0, 8
movd ecx, xmm0
and ecx, 0xfffffe00
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
push dword [0x5301b8]
mov dword [ebp - 0x18], 0
call fcn.0049bbc0
push ecx
mov byte [ebp - 4], 6
mov esi, esp
mov ecx, dword [0x5301b8]
lea ecx, [ecx - 0x10]
call fcn.0049ca30
add eax, 0x10
lea ecx, [ebp - 0x34]
mov dword [esi], eax
call fcn.004927b0
add esp, 4
test eax, eax
jne 0x4936ab
mov eax, dword [ebp - 0x2c]
test al, al
je 0x4933b5
cmp al, 7
jne 0x4933b5
push dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
call fcn.0040c030
cmp eax, 0x5300f0
je 0x4933b5
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
call fcn.0040be70
cmp byte [eax + 8], 0
je 0x4933b5
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
call fcn.0040be70
cmp byte [eax + 8], 4
jne 0x4933b5
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
call fcn.0040be70
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, eax
call fcn.0040b0f0
mov ecx, 3
cmp dword [eax + 0x10], 0
je 0x4933ba
mov byte [ebp - 0x1ad], 1
jmp 0x4933c1
mov ecx, 2
mov byte [ebp - 0x1ad], 0
test cl, 1
je 0x4933ce
lea ecx, [ebp - 0x4c]
call fcn.00416dc0
cmp byte [ebp - 0x1ad], 0
je 0x4936ab
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
call fcn.0040be70
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, eax
call fcn.0040b0f0
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00499670
lea ecx, [ebp - 0x4c]
movsd qword [ebp - 0x24], xmm0
mov byte [ebp - 4], 6
call fcn.00416dc0
call fcn.004bfb9c
cdq
mov ecx, 0x64
idiv ecx
movsd xmm1, qword [ebp - 0x24]
movd xmm0, edx
cvtdq2pd xmm0, xmm0
comisd xmm1, xmm0
jbe 0x4936ab
mov eax, dword [ebp - 0x1ac]
lea ecx, [ebp - 0x1ac]
mov edx, 4
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
cmove eax, edx
push eax
call fcn.00414c80
push ecx
push 0
push 0
lea ecx, [ebp - 0x1ac]
call fcn.00495f10
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
push 0xffffffffffffffff
lea edx, [ebp - 0x4c]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1ac]
call fcn.00412770
add esp, 4
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x20]
cmovae eax, dword [ebp - 0x4c]
push eax
call fcn.00415690
mov edx, str.O2s9LGwq
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1c8]
call fcn.0049c660
mov edi, eax
mov edx, 0x512e98
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1bc]
call fcn.0049c660
mov esi, eax
push ecx
mov ecx, edi
mov byte [ebp - 4], 0xb
call fcn.0048e410
push eax
push ecx
mov ecx, esi
call fcn.0048e410
push eax
lea ecx, [ebp - 0x20]
call fcn.00495ab0
lea ecx, [ebp - 0x1bc]
call fcn.00415770
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 9
call fcn.00415770
mov edx, str.O2shaDo
lea ecx, [ebp - 0x1bc]
call fcn.0049c660
mov edi, eax
mov edx, str.TQ
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1c8]
call fcn.0049c660
mov esi, eax
push ecx
mov ecx, edi
mov byte [ebp - 4], 0xd
call fcn.0048e410
push eax
push ecx
mov ecx, esi
call fcn.0048e410
push eax
lea ecx, [ebp - 0x20]
call fcn.00495ab0
lea ecx, [ebp - 0x1c8]
call fcn.00415770
lea ecx, [ebp - 0x1bc]
mov byte [ebp - 4], 9
call fcn.00415770
mov edx, 0x513110
lea ecx, [ebp - 0x1bc]
call fcn.0049c660
mov edi, eax
mov edx, str.Tg
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x1c8]
call fcn.0049c660
mov esi, eax
push ecx
mov ecx, edi
mov byte [ebp - 4], 0xf
call fcn.0048e410
push eax
push ecx
mov ecx, esi
call fcn.0048e410
push eax
lea ecx, [ebp - 0x20]
call fcn.00495ab0
lea ecx, [ebp - 0x1c8]
call fcn.00415770
lea ecx, [ebp - 0x1bc]
mov byte [ebp - 4], 9
call fcn.00415770
mov edx, 0x513124
lea ecx, [ebp - 0x1bc]
call fcn.0049c660
mov edi, eax
mov edx, 0x51300c
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x1c8]
call fcn.0049c660
mov esi, eax
push ecx
mov ecx, edi
mov byte [ebp - 4], 0x11
call fcn.0048e410
push eax
push ecx
mov ecx, esi
call fcn.0048e410
push eax
lea ecx, [ebp - 0x20]
call fcn.00495ab0
lea ecx, [ebp - 0x1c8]
call fcn.00415770
lea ecx, [ebp - 0x1bc]
mov byte [ebp - 4], 9
call fcn.00415770
push 0x38
lea eax, [ebp - 0xdc]
push 0
push eax
call fcn.004c1b90
add esp, 0xc
lea ecx, [ebp - 0xdc]
call fcn.00492b50
mov edi, dword [ebp - 0x1cc]
xor eax, eax
cmp byte [ebp - 0x1ae], al
mov byte [ebp - 4], 0x12
setne al
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x20]
push dword [eax - 0xc]
push eax
lea ecx, [ebp - 0xa8]
call fcn.0049c940
lea ecx, [ebp - 0xdc]
call fcn.00492610
lea ecx, [ebp - 0xdc]
call fcn.00492ce0
lea ecx, [ebp - 0x20]
call fcn.00415730
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call fcn.00416dc0
lea ecx, [ebp - 0xa4]
call fcn.00496a10
mov byte [ebp - 4], 5
or ecx, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4936d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.0040ad50
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1ac]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x1ac], 0x513254
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x1b0], eax
lea eax, [ebp - 0x194]
push eax
mov dword [ebp - 0x194], 0x507d2c
call fcn.004bc5d8
mov esi, dword [ebp - 0x1d0]
add esp, 4
lea ecx, [ebp - 0xa4]
call fcn.004968c0
mov eax, edi
cmp edi, 4
jne 0x493742
mov eax, dword [esi + 8]
cmp eax, 1
jne 0x49374c
mov eax, dword [esi + 0x1c]
jmp 0x49374f
mov eax, dword [esi + 0x20]
cmp byte [eax + 8], 0
je 0x49377e
cmp edi, 4
jne 0x49375d
mov edi, dword [esi + 8]
cmp edi, 1
jne 0x493767
mov eax, dword [esi + 0x1c]
jmp 0x49376a
mov eax, dword [esi + 0x20]
mov al, byte [eax + 8]
test al, al
je 0x493775
cmp al, 7
jne 0x49377e
mov byte [ebp - 0x1ad], 1
jmp 0x493785
mov byte [ebp - 0x1ad], 0
lea ecx, [ebp - 0x14c]
call fcn.0040a760
mov al, byte [ebp - 0x1ad]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004bd963
mov esp, ebp
pop ebp
ret 4