Function at 0x100639e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a22f
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x10094610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10063b94
push ebx
push edi
mov dword [ebp - 0xd0], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xac], eax
cmp eax, ebx
je 0x10063b94
inc eax
push eax
call fcn.1006555b
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x10063b94
mov eax, dword [ebp - 0xac]
inc eax
push eax
push ebx
push esi
call fcn.10066c10
mov ecx, dword [ebp - 0xac]
add esp, 0xc
push ebx
lea eax, [ebp - 0xd0]
push eax
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push esi
call fcn.1004feb0
mov edi, eax
mov dword [ebp - 0xd8], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xd4], esi
sub esp, 0x14
mov ecx, esp
mov dword [ebp - 0xac], esp
push ebx
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push 0x1008265a
mov byte [ebp - 4], 1
mov byte [ecx], bl
call fcn.10004bf0
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xb8], esp
push edi
mov byte [ebp - 4], 2
call fcn.1004e650
lea edx, [ebp - 0x80]
push edx
mov byte [ebp - 4], 1
call fcn.10051110
add esp, 0x40
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
xor edx, edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x6c], 8
mov eax, dword [ebp - 0x80]
mov byte [ebp - 4], 6
jae 0x10063b2e
lea eax, [ebp - 0x80]
lea ecx, [ebp - 0x8c]
push ecx
push str.RESULT
push eax
lea edx, [ebp - 0xb0]
push edx
call fcn.1005c7e0
add esp, 0x10
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xb0]
cmp dword [ebp - 0x8c], ebx
jle 0x10063b9b
mov byte [ebp - 4], 6
call fcn.1005bdf0
lea ecx, [ebp - 0x48]
call fcn.1004e5d0
lea ecx, [ebp - 0x64]
call fcn.1004e5d0
lea ecx, [ebp - 0x2c]
call fcn.1004e5d0
lea ecx, [ebp - 0x80]
call fcn.1004e5d0
push esi
call fcn.100660ce
push edi
call fcn.100660ce
add esp, 8
xor eax, eax
jmp 0x10063e6f
push ebx
push str.DOWNLOAD_URL
lea eax, [ebp - 0xc8]
push eax
call fcn.1005bf60
push ebx
lea ecx, [ebp - 0x108]
push ecx
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 8
call fcn.1005bb70
mov eax, dword [ebp - 0x108]
cmp eax, ebx
je 0x10063bd7
push eax
lea ecx, [ebp - 0x2c]
call fcn.1004fd40
push ebx
push str.FILENAME
lea edx, [ebp - 0xc0]
push edx
lea ecx, [ebp - 0xb0]
call fcn.1005bf60
push ebx
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 9
call fcn.1005bb70
mov eax, dword [ebp - 0xf0]
cmp eax, ebx
je 0x10063c19
push eax
lea ecx, [ebp - 0x48]
call fcn.1004fd40
push ebx
push str.RUN_PARAMS
lea ecx, [ebp - 0xcc]
push ecx
lea ecx, [ebp - 0xb0]
call fcn.1005bf60
push ebx
lea edx, [ebp - 0xe4]
push edx
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0xa
call fcn.1005bb70
mov eax, dword [ebp - 0xe4]
cmp eax, ebx
je 0x10063c5b
push eax
lea ecx, [ebp - 0x64]
call fcn.1004fd40
push ebx
push str.EXTRA_DATA
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0xb0]
call fcn.1005bf60
push ebx
lea ecx, [ebp - 0xfc]
push ecx
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0xb
call fcn.1005bb70
mov ecx, dword [ebp - 0xfc]
cmp ecx, ebx
je 0x10063cbd
cmp dword [0x10094450], 8
mov eax, dword [0x1009443c]
jae 0x10063ca7
mov eax, 0x1009443c
mov edx, dword [0x10094438]
push ecx
push str.DATA
push eax
push edx
call fcn.100617e0
add esp, 0x10
push ebx
push str.IS_SETUP
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xac], 1
call fcn.1005bf60
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 0xc
call fcn.1005bc00
test al, al
jne 0x10063d2d
push ebx
lea ecx, [ebp - 0xb4]
call fcn.1005bbd0
push eax
lea ecx, [ebp - 0xa8]
call fcn.1004e650
push 0xffffffffffffffff
push ebx
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.100515b0
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 0xc
call fcn.1004e5d0
cmp dword [ebp - 0x1c], ebx
je 0x10063de1
sub esp, 0x1c
lea edx, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0xb8], esp
push edx
call fcn.1004e600
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xc4], esp
push str.DOWNLOAD_UPDATE_START
mov byte [ebp - 4], 0xe
call fcn.1004e650
mov byte [ebp - 4], 0xc
call fcn.10062cb0
add esp, 0x1c
lea eax, [ebp - 0x64]
mov ecx, esp
mov dword [ebp - 0xc4], esp
push eax
call fcn.1004e600
mov ecx, dword [ebp - 0xac]
push ecx
sub esp, 0x1c
lea edx, [ebp - 0x48]
mov ecx, esp
mov dword [ebp - 0xb8], esp
push edx
mov byte [ebp - 4], 0xf
call fcn.1004e600
sub esp, 0x1c
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0xac], esp
push eax
mov byte [ebp - 4], 0x10
call fcn.1004e600
mov byte [ebp - 4], 0xc
call fcn.10063390
add esp, 0x58
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xc4], esp
push str.DOWNLOAD_UPDATE_FINISH
call fcn.1004e650
call fcn.100638a0
add esp, 0x20
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 0xb
call fcn.1005bdf0
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0xa
call fcn.1005bdf0
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 9
call fcn.1005bdf0
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 8
call fcn.1005bdf0
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 7
call fcn.1005bdf0
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 6
call fcn.1005bdf0
lea ecx, [ebp - 0x48]
call fcn.1004e5d0
lea ecx, [ebp - 0x64]
call fcn.1004e5d0
lea ecx, [ebp - 0x2c]
call fcn.1004e5d0
lea ecx, [ebp - 0x80]
call fcn.1004e5d0
push esi
call fcn.100660ce
push edi
call fcn.100660ce
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret