Function at 0x417680
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x488548]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x34], 0
and dword [ebp - 0x54], 0
push ebx
mov ebx, dword [ebp + 8]
cmp word [ebx + 0x3bac], 6
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x3c], eax
jae 0x4176be
cmp word [ebx + 0x3bae], 6
jb 0x4176c4
push ebx
call fcn.00415cc1
mov eax, dword [ebx + 0x1d34]
mov dword [ebx + 0x570], 2
test byte [eax + 0x274], 0x80
jne 0x4176f9
mov ecx, dword [ebx + 0x1d58]
test ecx, ecx
je 0x4176f9
add eax, 0x274
or byte [eax], 0x80
dec ecx
add eax, 0x278
test ecx, ecx
jne 0x4176ec
cmp dword [ebx + 0x4a30], 1
je 0x417735
mov edi, dword [ebx + 0x1d58]
mov eax, dword [ebx + 0x1d34]
test edi, edi
je 0x41772b
lea esi, [eax + 0x14]
lea eax, [esi + 0x3c]
push eax
call fcn.00414792
mov dword [esi], eax
dec edi
add esi, 0x278
test edi, edi
jne 0x417715
mov dword [ebx + 0x4a30], 1
mov edi, dword [ebp - 0x3c]
xor eax, eax
mov word [ebx + 0x185c], ax
push edi
and dword [ebx + 0x1d20], 0
lea eax, [ebx + 0x1858]
push eax
mov eax, dword [ebx + 0x1d58]
imul eax, eax, 0x278
lea esi, [ebx + 0x1d34]
mov ecx, dword [esi]
lea eax, [eax + ecx + 0x24]
push eax
push dword [ebp - 0x5c]
push dword [ebx + 0x56c]
push dword [ebx + 0xc]
call fcn.004140f7
mov dword [ebp - 0x50], eax
mov dword [ebx + 0x5458], 0
cmp eax, 0xffffffff
jne 0x41781c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [ebp - 0x4c], ecx
cmp ecx, 2
jne 0x4177a6
or dword [edi], 0x800000
cmp ecx, 0xaa
je 0x4177f8
mov eax, dword [ebx + 0x1d40]
mov eax, dword [eax]
mov edx, dword [esi]
imul eax, eax, 0x278
add eax, edx
cmp byte [eax + 0xe], 0
jne 0x4177e8
push ecx
add eax, 0x50
push eax
call dword [sym.imp.PPLIB32W.DLL__PPErrorMsg_8]
mov eax, dword [ebx + 0x1d40]
mov eax, dword [eax]
mov ecx, dword [esi]
imul eax, eax, 0x278
mov edx, dword [ebp - 0x4c]
mov dword [eax + ecx + 0x44], edx
push 0
xor edx, edx
mov ecx, ebx
call fcn.00427caa
jmp 0x417cc9
mov eax, dword [edi]
mov dword [ebx + 0x5380], eax
mov dword [ebx + 0x49f4], 4
or dword [ebx + 0xa0], 0x20
push ebx
call fcn.00415d33
jmp 0x417cc9
and dword [ebx + 0x5384], 0
push ebx
call fcn.00415d33
mov dword [ebp - 0x78], 0x14
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebx + 0x1d54], 1
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], 5
jne 0x41788e
mov eax, dword [ebx + 0x1d40]
mov eax, dword [eax]
mov esi, dword [esi]
imul eax, eax, 0x278
cmp byte [eax + esi + 0xe], 0
jne 0x41788e
and dword [ebx + 0x1d54], 0
dec dword [ebx + 0x1d58]
mov eax, dword [ebx + 0x1d58]
imul eax, eax, 0x278
add eax, esi
lea esi, [eax + 0x29c]
lea edi, [eax + 0x24]
mov ecx, 0x94
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebx + 0x1d58]
lea eax, [ebp - 0x30]
push eax
push ebx
mov dword [ebp - 0x4c], esi
call fcn.00415bb2
mov eax, dword [edi]
mov dword [ebp - 0x64], eax
mov eax, esi
imul eax, eax, 0x278
and dword [ebp - 0x40], 0
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x44], esi
mov esi, dword [ebx + 0x1d58]
mov ecx, dword [ebp - 0x68]
imul esi, esi, 0x278
lea edi, [ebx + 0x1d34]
mov eax, dword [edi]
add esi, eax
add ecx, eax
lea eax, [esi + 0x50]
push eax
mov dword [ebp - 0x60], ecx
mov byte [esi + 0x274], 0
mov byte [esi + 0x276], 0
call fcn.00414792
mov edx, dword [ebp - 0x44]
mov dword [esi + 0x14], eax
mov ecx, dword [edi]
mov edi, dword [ebp - 0x54]
imul edi, edi, 0x278
add edi, ecx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x3c], edx
test edx, edx
je 0x417ac9
cmp dword [edi + 0x14], eax
jne 0x41795c
lea edx, [esi + 0x50]
lea eax, [edi + 0x50]
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x38]
mov dx, word [edx]
cmp dx, word [eax]
jne 0x417950
test dx, dx
je 0x41794c
mov edx, dword [ebp - 0x38]
mov dx, word [edx + 2]
mov word [ebp - 0x56], dx
cmp dx, word [eax + 2]
jne 0x417950
add dword [ebp - 0x38], 4
add eax, 4
test dx, dx
jne 0x41791f
xor eax, eax
jmp 0x417955
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41797d
mov eax, dword [ebp - 0x6c]
add edi, 0x278
mov dword [ebp - 0x48], edi
cmp edi, dword [ebp - 0x60]
jne 0x417973
mov edx, dword [ebp - 0x40]
lea edi, [ecx + edx]
mov dword [ebp - 0x48], edi
dec dword [ebp - 0x3c]
jne 0x417911
jmp 0x417ac9
mov eax, edi
sub eax, ecx
cdq
mov ecx, 0x278
idiv ecx
lea ecx, [eax + 1]
cmp ecx, dword [ebp - 0x4c]
jge 0x417996
cmp eax, dword [ebp - 0x34]
jmp 0x41799b
mov ecx, dword [ebp - 0x34]
cmp eax, ecx
mov dword [ebp - 0x54], ecx
jne 0x4179ad
inc dword [ebp - 0x34]
dec dword [ebp - 0x44]
add dword [ebp - 0x40], 0x278
cmp byte [edi + 0xf], 1
jne 0x4179c5
lea eax, [ebp - 0x30]
push eax
mov edx, edi
mov ecx, ebx
call fcn.00415d71
jmp 0x417a6b
lea eax, [edi + 0x24]
mov dword [ebp - 0x60], eax
mov eax, dword [eax]
lea edx, [esi + 0x24]
mov dword [ebp - 0x38], eax
mov eax, dword [edx]
cmp eax, dword [ebp - 0x38]
jne 0x417a25
test al, 0x10
jne 0x4179ee
mov eax, dword [esi + 0x44]
cmp eax, dword [edi + 0x44]
jne 0x417a25
mov eax, dword [esi + 0x40]
cmp eax, dword [edi + 0x40]
jne 0x417a25
mov eax, dword [esi + 0x38]
cmp eax, dword [edi + 0x38]
jne 0x417a25
mov eax, dword [esi + 0x3c]
cmp eax, dword [edi + 0x3c]
jne 0x417a25
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x44]
and byte [eax + 0x274], 0x7f
mov edi, dword [ebp - 0x60]
mov dword [esi + 0x44], ecx
mov eax, dword [eax + 0x40]
mov dword [esi + 0x40], eax
mov ecx, 0x94
mov esi, edx
rep movsd dword es:[edi], dword [esi]
jmp 0x417bfe
mov byte [edi + 0xf], 4
test byte [edx], 0x10
je 0x417a49
test byte [ebp - 0x38], 0x10
je 0x417a49
mov eax, dword [edi + 0x44]
mov dword [esi + 0x44], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov byte [edi + 0x274], 8
jmp 0x417a50
mov byte [edi + 0x274], 0
cmp word [ebx + 0x3bac], 6
jae 0x417a6b
cmp word [ebx + 0x3bae], 6
jae 0x417a6b
mov dword [edi + 0x1c], 0xfffffffe
cmp dword [edi], 0xffffffff
je 0x417ab7
mov eax, dword [edi + 0x40]
mov ecx, dword [ebx + 0x1d68]
sub dword [ebx + 0x1d6c], eax
mov eax, ecx
sub eax, dword [edi + 0x44]
mov dword [ebx + 0x1d68], eax
cmp eax, ecx
jbe 0x417a94
dec dword [ebx + 0x1d6c]
mov eax, dword [esi + 0x40]
add dword [ebx + 0x1d6c], eax
mov eax, dword [esi + 0x44]
add dword [ebx + 0x1d68], eax
mov eax, dword [ebx + 0x1d68]
cmp eax, dword [esi + 0x44]
jae 0x417ab7
inc dword [ebx + 0x1d6c]
mov eax, dword [ebp - 0x48]
add esi, 0x24
lea edi, [eax + 0x24]
mov ecx, 0x94
rep movsd dword es:[edi], dword [esi]
mov esi, eax
push dword [ebp - 8]
push esi
push ebx
call fcn.0041589d
cmp dword [ebx + 0x1d20], 4
jne 0x417ae6
push dword [ebp - 0x50]
push esi
push ebx
call fcn.00415723
cmp dword [ebp - 0x3c], 0
jne 0x417bfe
mov al, byte [esi + 0x274]
or dword [esi], 0xffffffff
or dword [esi + 4], 0xffffffff
or dword [esi + 0x18], 0xffffffff
mov byte [esi + 0xf], 5
mov dword [esi + 0x1c], 0xfffffffe
test byte [0x48b018], al
jne 0x417b9c
test al, 3
jne 0x417b3a
lea ecx, [esi + 0x24]
mov eax, dword [ecx]
test dword [ebp - 0x10], eax
jne 0x417b9c
test dword [ebp - 0xc], eax
jne 0x417b3a
lea eax, [ebp - 0x30]
push eax
push ecx
call dword [sym.imp.PPLIB32W.DLL__FinddataRegularExpression_8]
test eax, eax
je 0x417b9c
test byte [esi + 0x24], 0x10
je 0x417b57
test byte [esi + 0x274], 3
je 0x417b51
inc dword [ebx + 0x1d2c]
jmp 0x417b57
inc dword [ebx + 0x1d30]
mov ecx, dword [ebx + 0x1d5c]
test ecx, ecx
je 0x417b81
mov eax, dword [ebx + 0x1d54]
mov edx, dword [ebx + 0x1d40]
shl ecx, 2
lea eax, [edx + eax*4]
push ecx
push eax
add eax, 4
push eax
call fcn.00468c30
add esp, 0xc
mov eax, dword [ebx + 0x1d54]
mov ecx, dword [ebx + 0x1d40]
mov edx, dword [ebx + 0x1d58]
mov dword [ecx + eax*4], edx
inc dword [ebx + 0x1d54]
inc dword [ebx + 0x1d58]
mov eax, dword [ebx + 0x1d58]
cmp eax, 0x33d913
jg 0x417c2a
inc eax
imul eax, eax, 0x278
push eax
lea eax, [ebx + 0x1d34]
push eax
call fcn.00454de4
test eax, eax
je 0x417c2a
mov eax, dword [ebx + 0x1d58]
lea eax, [eax*4 + 4]
push eax
lea eax, [ebx + 0x1d40]
push eax
call fcn.00454de4
test eax, eax
je 0x417c2a
mov eax, dword [ebp - 0x78]
cmp dword [ebx + 0x1d58], eax
jl 0x417bfe
lea eax, [ebp - 0x78]
push eax
push ebx
call fcn.00415c45
test eax, eax
je 0x417c30
mov eax, dword [ebx + 0x1d58]
push dword [ebp - 0x64]
imul eax, eax, 0x278
mov ecx, dword [ebx + 0x1d34]
lea eax, [eax + ecx + 0x24]
push eax
push dword [ebp - 0x50]
call fcn.00413fd6
test eax, eax
jne 0x4178b8
jmp 0x417c30
push ebx
call fcn.0041459e
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.PPLIB32W.DLL__FreeFN_REGEXP_4]
push dword [ebp - 0x64]
push dword [ebp - 0x50]
call fcn.00413f46
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x417c51
call fcn.00424f83
cmp dword [ebx + 0x184c], 0
je 0x417c82
mov edx, dword [ebp - 0x5c]
lea eax, [ebx + 0xee4]
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
inc eax
inc eax
test cx, cx
jne 0x417c65
push dword [ebp - 0x5c]
push dword [ebx + 0x1850]
push ebx
call fcn.00416da1
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x4c]
imul esi, esi, 0x278
add esi, dword [ebx + 0x1d34]
sub eax, dword [ebp - 0x34]
mov edi, eax
je 0x417cc9
lea eax, [esi + 0x274]
mov cl, byte [eax]
test cl, cl
jns 0x417cbe
and cl, 0x7f
mov byte [eax], cl
test cl, 3
jne 0x417cbe
mov edx, esi
mov ecx, ebx
mov byte [esi + 0xf], 1
call fcn.00407ab9
dec edi
add esi, 0x278
test edi, edi
jne 0x417c9b
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046890b
leave
ret 0xc