Function at 0x45e980
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4830c8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a0fe0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
lea esi, [ecx + 0x28c]
push str.UpdateList
lea eax, [esp + 0x2c]
push esi
push eax
mov dword [esp + 0x68], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], ebp
call fcn.00457f10
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [esp + 0x28]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ea0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x45eee7
push str.UpdateList
lea ecx, [esp + 0x38]
push esi
push ecx
call fcn.00457f10
mov eax, dword [eax]
add esp, 0xc
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov dword [esp + 0x40], edi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45ea66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, 0xffffffff
je 0x45eee7
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebp
je 0x45eeb6
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebp
mov dword [esp + 0x30], eax
je 0x45eeb6
push ebp
lea ecx, [esp + 0x3c]
push ecx
push esi
mov edx, eax
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebp
je 0x45eeb6
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x3c]
push eax
push 0x4891f0
push ecx
call fcn.0046eea3
add esp, 0xc
cmp eax, ebp
je 0x45eb57
push eax
lea ecx, [esp + 0x2c]
call fcn.0044c460
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x60], 1
call fcn.0045ddf0
lea ecx, [esp + 0x28]
mov byte [esp + 0x5c], 0
call fcn.00448f90
lea esp, [esp]
lea edx, [esp + 0x3c]
push edx
push 0x4891f0
push ebp
call fcn.0046eea3
add esp, 0xc
cmp eax, ebp
je 0x45eb57
push eax
lea ecx, [esp + 0x2c]
call fcn.0044c460
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x60], 2
call fcn.0045ddf0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x5c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45eb00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x45eb00
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x48]
call fcn.00457570
mov edx, dword [eax]
mov eax, dword [eax + 4]
push 0x4891e8
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
call fcn.00455010
push eax
call fcn.00454fb0
add esp, 8
test al, al
je 0x45eeb6
push ebp
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x30]
call fcn.00455ed0
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
jmp 0x45ebb0
mov ebx, dword [esp + 0x4c]
cmp dword [esp + 0x48], ebx
jbe 0x45ebbf
call fcn.0046de9f
cmp edi, ebp
je 0x45ebcb
lea edx, [esp + 0x44]
cmp edi, edx
je 0x45ebd0
call fcn.0046de9f
cmp esi, ebx
je 0x45eeb6
mov eax, dword [0x4a5a34]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a5a34
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [0x4a5a34]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a5a34
mov byte [esp + 0x5c], 3
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [0x4a5a34]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a5a34
mov byte [esp + 0x5c], 4
call edx
add eax, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [0x4a5a34]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a5a34
mov byte [esp + 0x5c], 5
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
cmp edi, ebp
mov byte [esp + 0x5c], 6
jne 0x45ec4d
call fcn.0046de9f
cmp esi, dword [edi + 8]
jb 0x45ec57
call fcn.0046de9f
push esi
lea ecx, [esp + 0x20]
call fcn.0044c620
cmp esi, dword [edi + 8]
jb 0x45ec6b
call fcn.0046de9f
mov eax, dword [esp + 0x4c]
add esi, 4
cmp dword [esp + 0x48], eax
mov ebx, eax
jbe 0x45ec7f
call fcn.0046de9f
lea eax, [esp + 0x44]
cmp edi, eax
je 0x45ec8c
call fcn.0046de9f
cmp esi, ebx
je 0x45ee92
cmp esi, dword [edi + 8]
jb 0x45ec9e
call fcn.0046de9f
push esi
lea ecx, [esp + 0x18]
call fcn.0044c620
cmp esi, dword [edi + 8]
jb 0x45ecb2
call fcn.0046de9f
mov eax, dword [esp + 0x4c]
add esi, 4
cmp dword [esp + 0x48], eax
mov ebx, eax
jbe 0x45ecc6
call fcn.0046de9f
lea ecx, [esp + 0x44]
cmp edi, ecx
je 0x45ecd3
call fcn.0046de9f
cmp esi, ebx
je 0x45ee92
cmp esi, dword [edi + 8]
jb 0x45ece5
call fcn.0046de9f
push esi
lea ecx, [esp + 0x2c]
call fcn.0044c620
cmp esi, dword [edi + 8]
jb 0x45ecf9
call fcn.0046de9f
mov eax, dword [esp + 0x4c]
add esi, 4
cmp dword [esp + 0x48], eax
mov ebx, eax
jbe 0x45ed0d
call fcn.0046de9f
lea edx, [esp + 0x44]
cmp edi, edx
je 0x45ed1a
call fcn.0046de9f
cmp esi, ebx
je 0x45ee92
cmp esi, dword [edi + 8]
jb 0x45ed2c
call fcn.0046de9f
push esi
lea ecx, [esp + 0x24]
call fcn.0044c620
cmp esi, dword [edi + 8]
jb 0x45ed40
call fcn.0046de9f
mov eax, dword [esp + 0x4c]
add esi, 4
cmp dword [esp + 0x48], eax
mov ebx, eax
jbe 0x45ed54
call fcn.0046de9f
lea eax, [esp + 0x44]
cmp edi, eax
je 0x45ed61
call fcn.0046de9f
cmp esi, ebx
je 0x45ee92
cmp esi, dword [edi + 8]
jb 0x45ed73
call fcn.0046de9f
mov eax, dword [esi]
push 0xa
push ebp
push eax
call fcn.0046ee7a
add esp, 0xc
cmp esi, dword [edi + 8]
jb 0x45ed8b
call fcn.0046de9f
lea ecx, [esp + 0x1c]
push 0x4891e0
push ecx
add esi, 4
call fcn.00454fb0
add esp, 8
test al, al
je 0x45edf5
lea edx, [esp + 0x14]
push str.AdvList
push edx
call fcn.00454fb0
add esp, 8
test al, al
je 0x45edbf
or dword [esp + 0x18], 1
lea eax, [esp + 0x14]
push str.BnrList
push eax
call fcn.00454fb0
add esp, 8
test al, al
je 0x45edda
or dword [esp + 0x18], 2
lea ecx, [esp + 0x14]
push str.Cndtion
push ecx
call fcn.00454fb0
add esp, 8
test al, al
je 0x45edf5
or dword [esp + 0x18], 8
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x5c], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45ee1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x5c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ee3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x5c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ee64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x5c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ebb0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x45ebb0
lea ecx, [esp + 0x20]
call fcn.00448f90
lea ecx, [esp + 0x28]
call fcn.00448f90
lea ecx, [esp + 0x14]
call fcn.00448f90
lea ecx, [esp + 0x1c]
call fcn.00448f90
mov eax, dword [esp + 0x40]
cmp eax, ebp
je 0x45eec5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x30]
cmp edi, ebp
je 0x45eee7
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x48]
cmp eax, ebp
mov dword [esp + 0x5c], 0xffffffff
je 0x45ef19
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0x48]
push edx
push ecx
push eax
call fcn.00459bd0
mov edx, dword [esp + 0x58]
push edx
call fcn.00464923
add esp, 0x14
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret