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

Disassembly:
push 0x354
mov eax, 0x670aae
call fcn.006269e7
mov eax, ecx
mov dword [ebp - 0x2fc], eax
push 0x208
mov dword [ebp - 0x308], eax
xor esi, esi
lea eax, [ebp - 0x260]
push esi
push eax
call fcn.0063e4e0
add esp, 0xc
lea eax, [ebp - 0x260]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x30
lea eax, [ebp - 0x2f8]
push esi
push eax
call fcn.0063e4e0
sub esp, 0x1c
mov ecx, esp
push dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00447f33
push 0xffffffffffffffff
lea ecx, [ebp - 0x2f8]
call fcn.00447e9c
push esi
push 0x80
push 3
push esi
push 1
push closesocket
lea eax, [ebp - 0x260]
mov dword [ebp - 4], esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x2f8], eax
push ecx
push eax
mov dword [ebp - 0x280], esi
mov dword [ebp - 0x27c], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x449e24
push 0x56
push str.GlobalConfig::InitParamsFromSelf
push str.GlobalConfig.cpp
push str.GConfig
push 3
lea ecx, [ebp - 0x48]
call fcn.00424985
mov esi, eax
push str.get_file_size_failed.
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004248a8
push str._error_code:
mov ecx, esi
call fcn.004248a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00446470
lea ecx, [ebp - 0x48]
call fcn.0066b093
jmp 0x44a7fa
mov eax, dword [ebp - 0x280]
push esi
mov dword [ebp - 0x304], eax
mov eax, dword [ebp - 0x27c]
push esi
mov dword [ebp - 0x30c], eax
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x270], esi
call fcn.0044c174
mov ebx, eax
mov dword [ebp - 0x274], ebx
mov byte [ebp - 4], 3
xor eax, eax
mov dword [ebp - 0x2c4], esi
lea edi, [ebp - 0x2c0]
mov dword [ebp - 0x264], esi
stosd dword es:[edi], eax
push 0xa
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x304]
lea edi, [ebp - 0x40]
sub eax, 0x28
mov dword [ebp - 0x304], eax
mov dword [ebp - 0x2bc], eax
mov eax, dword [ebp - 0x30c]
mov dword [ebp - 0x2b8], eax
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x264]
push eax
push 0x28
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x2f8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x449f11
push 0x69
push str.GlobalConfig::InitParamsFromSelf
push str.GlobalConfig.cpp
push str.GConfig
push 3
lea ecx, [ebp - 0x33c]
call fcn.00424985
mov esi, eax
push str.read_extern_data_header_failed.
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.004248a8
push str._error_code:
mov ecx, esi
call fcn.004248a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00446470
jmp 0x44a336
mov eax, 0xef4
cmp word [ebp - 0x40], ax
jne 0x44a308
cmp dword [ebp - 0x3e], 0
je 0x44a308
push 0x14
lea eax, [ebp - 0x2c4]
push esi
push eax
call fcn.0063e4e0
mov eax, dword [ebp - 0x304]
add esp, 0xc
sub eax, dword [ebp - 0x3e]
mov dword [ebp - 0x304], eax
mov dword [ebp - 0x2bc], eax
mov eax, dword [ebp - 0x30c]
push dword [ebp - 0x3e]
mov dword [ebp - 0x2b8], eax
call fcn.0062580b
pop ecx
push eax
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x268], esi
call fcn.0044c298
mov byte [ebp - 4], 6
push dword [ebp - 0x3e]
mov edi, dword [ebp - 0x26c]
push esi
push edi
call fcn.0063e4e0
add esp, 0xc
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x3e]
push edi
push dword [ebp - 0x2f8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44a024
push 0x7c
push str.GlobalConfig::InitParamsFromSelf
push str.GlobalConfig.cpp
push str.GConfig
push 2
lea ecx, [ebp - 0x33c]
call fcn.00424985
mov esi, eax
push str.read_extern_data_failed.
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.004248a8
push str._error_code:
mov ecx, esi
call fcn.004248a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00446470
lea ecx, [ebp - 0x33c]
call fcn.0066b093
mov ecx, dword [ebp - 0x268]
test ecx, ecx
je 0x44a341
call fcn.0042358b
jmp 0x44a341
push dword [ebp - 0x3e]
mov edx, edi
lea ecx, [ebp - 0x298]
call fcn.0045bb4c
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x298]
cmp dword [ebp - 0x284], 8
mov eax, dword [ebp - 0x288]
cmovae ecx, dword [ebp - 0x298]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x298]
cmovae ecx, dword [ebp - 0x298]
push eax
push ecx
lea ecx, [ebp - 0x2b0]
call fcn.0044d7f4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x3a]
cmp dword [ebp - 0x29c], 0x10
lea eax, [ebp - 0x2b0]
push ecx
cmovae eax, dword [ebp - 0x2b0]
push eax
call fcn.00651fd9
pop ecx
pop ecx
test eax, eax
je 0x44a121
push 0x85
push str.GlobalConfig::InitParamsFromSelf
push str.GlobalConfig.cpp
push str.GConfig
push 3
lea ecx, [ebp - 0x33c]
call fcn.00424985
mov esi, eax
push str.extern_data_md5_is_not_equal_to_header_md5._header_md5:
mov ecx, esi
mov byte [ebp - 4], 0xa
call fcn.004248a8
lea eax, [ebp - 0x3a]
mov ecx, esi
push eax
call fcn.004248a8
push str._data_md5:
mov ecx, esi
call fcn.004248a8
lea eax, [ebp - 0x2b0]
mov ecx, esi
push eax
call fcn.004249f5
lea ecx, [ebp - 0x33c]
call fcn.0066b093
xor edi, edi
lea ecx, [ebp - 0x2b0]
push edi
push 1
call fcn.00429656
push edi
push 1
lea ecx, [ebp - 0x298]
call fcn.00428ecb
jmp 0x44a00c
push edi
mov byte [ebp - 4], 0xb
call fcn.00641cc0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x344]
call fcn.0041c1dc
sub esp, 0x28
mov byte [ebp - 4], 0xc
mov eax, esp
lea edx, [ebp - 0x344]
xor edi, edi
lea ecx, [ebp - 0x360]
inc edi
push edi
mov dword [eax + 0x24], esi
call fcn.0041b5dd
add esp, 0x2c
mov ecx, eax
mov byte [ebp - 4], 0xd
mov eax, dword [ebx]
push ecx
mov dword [ebp - 0x300], eax
push dword [eax + 4]
push eax
call fcn.0044c402
mov edx, dword [ebp - 0x270]
mov ecx, 0xaaaaaa9
sub ecx, edx
mov ebx, eax
cmp ecx, edi
jae 0x44a192
push str.list_T__too_long
call fcn.0060fbac
mov eax, dword [ebp - 0x300]
lea ecx, [ebp - 0x360]
inc edx
mov dword [ebp - 0x270], edx
mov dword [eax + 4], ebx
mov eax, dword [ebx + 4]
mov dword [eax], ebx
call fcn.004243ad
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x340]
test ecx, ecx
je 0x44a1c5
call fcn.0042358b
push 0x8c
push str.GlobalConfig::InitParamsFromSelf
push str.GlobalConfig.cpp
push str.GConfig
push edi
lea ecx, [ebp - 0x33c]
call fcn.00424985
mov ebx, eax
push str.find_the_inject_data:
mov ecx, ebx
mov byte [ebp - 4], 0xe
call fcn.004248a8
push dword [ebp - 0x26c]
mov ecx, ebx
call fcn.0044d73a
lea ecx, [ebp - 0x33c]
call fcn.0066b093
push esi
push edi
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 4], 9
call fcn.00429656
push esi
push edi
lea ecx, [ebp - 0x298]
call fcn.00428ecb
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x268]
test ecx, ecx
je 0x44a243
call fcn.0042358b
mov ebx, dword [ebp - 0x274]
jmp 0x449e5b
push 0x70
push str.GlobalConfig::InitParamsFromSelf
push str.GlobalConfig.cpp
push str.GConfig
push 2
lea ecx, [ebp - 0x33c]
call fcn.00424985
push str.check_magic_failed_or_length_is_zero
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004248a8
lea ecx, [ebp - 0x33c]
call fcn.0066b093
mov eax, dword [ebp - 0x2fc]
mov byte [ebp - 4], 0x11
mov edi, dword [ebx]
cmp edi, ebx
je 0x44a542
push eax
lea esi, [edi + 8]
push esi
call fcn.0044d0fd
cmp byte [esi], 1
jne 0x44a3c8
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x300]
push str.extraInfo
push eax
mov esi, dword [ecx]
call fcn.0044c300
cmp dword [eax], esi
je 0x44a3a1
push str.extraInfo
lea ecx, [edi + 8]
call fcn.004497d0
sub esp, 0x10
mov ecx, esp
push eax
call fcn.00423477
mov ecx, dword [ebp - 0x2fc]
call fcn.004235d6
cmp byte [edi + 8], 1
jne 0x44a3c8
mov ecx, dword [edi + 0x10]
lea eax, [ebp - 0x30c]
push str.gameName
push eax
mov esi, dword [ecx]
call fcn.0044c300
cmp dword [eax], esi
je 0x44a3c8
xor eax, eax
inc eax
xor esi, esi
jmp 0x44a3cc
xor esi, esi
mov eax, esi
test al, al
je 0x44a432
push str.gameName
lea ecx, [edi + 8]
call fcn.004497d0
lea ecx, [ebp - 0x2b0]
push ecx
mov ecx, eax
call fcn.0044c22d
lea edx, [ebp - 0x2b0]
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x298]
call fcn.0066af79
mov ecx, dword [ebp - 0x2fc]
push eax
lea ecx, [ecx + 0xac]
call fcn.0042525f
push esi
push 1
lea ecx, [ebp - 0x298]
call fcn.00428ecb
push esi
push 1
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 0x11
call fcn.00429656
cmp byte [edi + 8], 1
jne 0x44a459
mov ecx, dword [edi + 0x10]
lea eax, [ebp - 0x304]
push str.title
push eax
mov esi, dword [ecx]
call fcn.0044c300
cmp dword [eax], esi
je 0x44a459
xor eax, eax
inc eax
xor esi, esi
jmp 0x44a45d
xor esi, esi
mov eax, esi
test al, al
je 0x44a4c3
push str.title
lea ecx, [edi + 8]
call fcn.004497d0
lea ecx, [ebp - 0x2b0]
push ecx
mov ecx, eax
call fcn.0044c22d
lea edx, [ebp - 0x2b0]
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x298]
call fcn.0066af79
mov ecx, dword [ebp - 0x2fc]
push eax
lea ecx, [ecx + 0x94]
call fcn.0042525f
push esi
push 1
lea ecx, [ebp - 0x298]
call fcn.00428ecb
push esi
push 1
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 0x11
call fcn.00429656
mov edi, dword [edi]
mov eax, dword [ebp - 0x2fc]
jmp 0x44a34d
mov dword [ebp - 4], 3
push 0xae
push str.GlobalConfig::InitParamsFromSelf
push str.GlobalConfig.cpp
push str.GConfig
push 1
lea ecx, [ebp - 0x33c]
xor edi, edi
call fcn.00424985
mov esi, eax
push str.TGBDownloader_international_
mov ecx, esi
mov byte [ebp - 4], 0x16
call fcn.004248a8
mov eax, dword [ebp - 0x2fc]
mov ecx, esi
push dword [eax + 0x18]
call fcn.0044947c
push 0x6d5b2c
mov ecx, esi
call fcn.004248a8
lea ecx, [ebp - 0x33c]
mov byte [ebp - 4], 3
call fcn.0066b093
push 0xaf
push str.GlobalConfig::InitParamsFromSelf
push str.GlobalConfig.cpp
push str.GConfig
push 1
lea ecx, [ebp - 0x33c]
call fcn.00424985
mov esi, eax
push str.need_install_pkg__
mov ecx, esi
mov byte [ebp - 4], 0x17
call fcn.004248a8
mov ecx, dword [ebp - 0x2fc]
add ecx, 0x58
push ecx
mov ecx, esi
call fcn.004249f5
push 0x6d5b2c
mov ecx, eax
call fcn.004248a8
lea ecx, [ebp - 0x33c]
mov byte [ebp - 4], 3
call fcn.0066b093
push 0xb0
push str.GlobalConfig::InitParamsFromSelf
push str.GlobalConfig.cpp
push str.GConfig
push 1
lea ecx, [ebp - 0x33c]
call fcn.00424985
mov esi, eax
push str.TGBDownloader_inner_SupplyId__
mov ecx, esi
mov byte [ebp - 4], 0x18
call fcn.004248a8
mov eax, dword [ebp - 0x2fc]
mov ecx, esi
push dword [eax + 0x1c]
call fcn.00446470
push 0x6d5b2c
mov ecx, esi
call fcn.004248a8
lea ecx, [ebp - 0x33c]
mov byte [ebp - 4], 3
call fcn.0066b093
push 0xb1
mov esi, str.GlobalConfig::InitParamsFromSelf
lea ecx, [ebp - 0x33c]
push esi
push str.GlobalConfig.cpp
push str.GConfig
push 1
call fcn.00424985
mov dword [ebp - 0x300], eax
push str.TGBDownloader_inner_buildid__
mov ecx, eax
mov byte [ebp - 4], 0x19
call fcn.004248a8
push 0x40
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.0063e4e0
mov eax, dword [ebp - 0x2fc]
add esp, 0xc
push dword [eax + 0x24]
push dword [eax + 0x20]
lea eax, [ebp - 0x58]
push str._I64u
push 0xffffffffffffffff
push 0x20
push eax
call fcn.0044944a
add esp, 0x18
cmp word [ebp - 0x58], di
je 0x44a6e0
lea eax, [ebp - 0x58]
push eax
call fcn.00643278
pop ecx
mov edi, eax
mov ecx, dword [ebp - 0x300]
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.00425488
mov ecx, dword [ebp - 0x300]
push 0x6d5b2c
call fcn.004248a8
lea ecx, [ebp - 0x33c]
mov byte [ebp - 4], 3
call fcn.0066b093
push 0xb2
push esi
push str.GlobalConfig.cpp
xor edi, edi
lea ecx, [ebp - 0x33c]
push str.GConfig
inc edi
push edi
call fcn.00424985
mov esi, eax
push str.TGBDownloader_inner_appid__
mov ecx, esi
mov byte [ebp - 4], 0x1a
call fcn.004248a8
mov ecx, dword [ebp - 0x2fc]
add ecx, 0x40
push ecx
mov ecx, esi
call fcn.004249f5
push 0x6d5b2c
mov ecx, eax
call fcn.004248a8
lea ecx, [ebp - 0x33c]
mov byte [ebp - 4], 3
call fcn.0066b093
push 0xb3
push str.GlobalConfig::InitParamsFromSelf
push str.GlobalConfig.cpp
push str.GConfig
push edi
lea ecx, [ebp - 0x33c]
call fcn.00424985
mov esi, eax
push str.Background_png_number:
mov ecx, esi
mov byte [ebp - 4], 0x1b
call fcn.004248a8
mov eax, dword [ebp - 0x2fc]
mov ecx, esi
push dword [eax + 0x8c]
call fcn.0044947c
lea ecx, [ebp - 0x33c]
call fcn.0066b093
mov eax, dword [ebx]
cmp eax, ebx
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
jmp 0x44a7e6
mov esi, dword [eax]
lea ecx, [eax + 8]
call fcn.004243ad
push 0x18
push edi
push dword [ebp - 0x264]
call fcn.004295f4
add esp, 0xc
mov eax, esi
cmp esi, ebx
mov dword [ebp - 0x264], eax
jne 0x44a7c7
push 0x18
push edi
push ebx
call fcn.004295f4
add esp, 0xc
lea ecx, [ebp - 0x2f8]
call fcn.004480cc
call fcn.00626934
ret