Function at 0x401340
Capabilities:
Check if file exists

Disassembly:
push ecx
mov eax, dword [0x41a050]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ebx, 1
xor edi, edi
mov dword [esi + 0xac], eax
mov ecx, dword [0x41a050]
mov dword [esi + 0xb0], ecx
mov edx, dword [0x41a050]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0xb4], edx
mov eax, dword [0x41a050]
mov dword [esi + 0xb8], eax
mov dword [esi + 0xc0], ecx
mov dword [esi], ebx
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], ebx
call dword [0x417030]
xor edx, edx
mov ecx, 0x18
div ecx
mov ebp, edx
mov dword [esp + 0x18], ebp
call dword [0x417030]
xor edx, edx
mov ecx, 0x3c
div ecx
cmp ebp, 9
jb 0x401419
cmp ebp, 0x15
jbe 0x401422
shr ebp, 1
add ebp, 9
mov dword [esp + 0x18], ebp
and edx, 0xffff
and ebp, 0xffff
shl edx, 0x10
or ebp, edx
mov dword [esp + 0x10], edx
mov dword [esi + 0x8c], ebp
call dword [0x417030]
xor edx, edx
mov ecx, 5
div ecx
inc edx
mov dword [esi + 0x90], edx
mov dword [esi + 0x94], ebp
call dword [0x417030]
xor edx, edx
mov ecx, 0x1c
div ecx
mov dword [esi + 0x9c], ebp
mov ebp, dword [esp + 0x10]
mov dword [esi + 0x328], edi
mov ecx, esi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xc4], ebx
mov dword [esi + 0x32c], edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xd0], edi
mov dword [esi + 0xd4], edi
mov dword [esi + 0xbc], 2
mov dword [esi + 0xd8], ebx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xec], edi
mov dword [esi + 0xf0], edi
mov dword [esi + 0xe0], edi
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xf4], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0xf8], edi
mov dword [esi + 0xfc], edi
mov dword [esi + 0x100], ebx
mov dword [esi + 0x104], edi
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], ebx
mov dword [esi + 0x110], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x114], edi
mov dword [esi + 0x118], ebx
mov dword [esi + 0x11c], edi
inc edx
mov dword [esi + 0x98], edx
mov edx, dword [esp + 0x18]
dec edx
and edx, 0xffff
or edx, ebp
mov dword [esi + 0xa0], edx
call fcn.004015c0
mov dword [esi + 0xe8], edi
mov eax, dword [0x41ec48]
cmp eax, 0xffffffff
jne 0x4015a8
lea ebp, [esi + 0x120]
push 0x103
push ebp
push edi
call dword [0x4170b4]
push 0x5c
push ebp
call fcn.0040ce14
add esp, 8
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x401592
push str.Pluginsupdate.txt
call fcn.0040cdf7
push eax
mov eax, dword [esp + 0x20]
push str.Pluginsupdate.txt
push eax
call fcn.0040cdba
add esp, 0x10
push ebp
call dword [0x4171b0]
test eax, eax
sete al
and eax, 0xff
mov dword [0x41ec48], eax
cmp eax, ebx
jne 0x4015af
mov dword [esi + 0x54], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4