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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53914d
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c8], ecx
xor ebx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x2d8], ebx
mov dword [ebp - 0x2d4], ebx
mov dword [ebp - 0x2d0], ebx
xor edi, edi
mov dword [ebp - 0x30c], edi
mov dword [ebp - 0x308], edi
push edi
push 0x80
push 3
push edi
push 1
push connect
mov byte [ebp - 4], 2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4e79be
call fcn.004054a0
test eax, eax
jne 0x4e81fe
jmp 0x4e79c6
mov edi, eax
mov dword [ebp - 0x30c], edi
lea eax, [ebp - 0x300]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x304], esi
cmp esi, 0xffffffff
jne 0x4e7a04
call fcn.004054a0
test eax, eax
jns 0x4e79fe
test edi, edi
je 0x4e81fe
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4e81fe
mov esi, dword [ebp - 0x304]
push esi
lea ecx, [ebp - 0x2d8]
call fcn.00405210
push 0
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x32c], 0
push eax
push esi
mov esi, dword [ebp - 0x2d8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4e7a61
call fcn.004054a0
test eax, eax
je 0x4e7a61
test edi, edi
je 0x4e7a4a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4e81fe
mov eax, dword [ebp - 0x2d0]
sub eax, esi
push eax
push esi
jmp 0x4e81f3
test edi, edi
je 0x4e7a74
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov dword [ebp - 0x30c], edi
lea ecx, [ebp - 0x1bc]
call fcn.004d2ea0
and dword [ebp - 0x2e4], 0xfffffe00
mov dword [ebp - 0x2e0], 0
mov byte [ebp - 4], 5
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp byte [esi], 0
jne 0x4e7ab2
xor ecx, ecx
jmp 0x4e7ac0
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e7ab7
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x44]
call fcn.00406560
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x194]
call fcn.00406660
cmp dword [ebp - 0x180], 0x10
lea ecx, [ebp - 0x194]
mov eax, dword [ebp - 0x184]
lea edx, [ebp - 0x2ec]
cmovae ecx, dword [ebp - 0x194]
push ecx
add eax, ecx
push edx
push eax
push ecx
lea ecx, [ebp - 0x1bc]
call fcn.004d2d00
test al, al
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x30]
sete bl
cmp eax, 0x10
jb 0x4e7b30
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00405350
test bl, bl
je 0x4e7b72
lea ecx, [ebp - 0x2ec]
call fcn.004d43c0
lea ecx, [ebp - 0x1bc]
call fcn.00408f30
test edi, edi
je 0x4e7b56
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call eax
mov eax, dword [ebp - 0x2d0]
lea ecx, [ebp - 0x2d8]
sub eax, esi
push eax
push esi
call fcn.00405350
xor ebx, ebx
jmp 0x4e81fe
push ecx
push 0x55fc24
lea ecx, [ebp - 0x2ec]
call fcn.004d36d0
lea ecx, [ebp - 0x2c0]
push 3
mov eax, dword [eax]
mov dword [ebp - 0x2c4], ecx
lea ecx, [ebp - 0x2c4]
push eax
call fcn.0041f5e0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2f8]
push dword [ebp - 0x2c4]
call fcn.00401ff0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2c0]
mov eax, dword [ebp - 0x2c4]
cmp eax, ecx
je 0x4e7bd1
push eax
call fcn.004a51fb
add esp, 4
push ecx
push 0x55fc2c
lea ecx, [ebp - 0x2ec]
call fcn.004d36d0
mov ecx, eax
call fcn.004d3a50
push ecx
push str.apkId
lea ecx, [ebp - 0x2ec]
mov dword [ebp - 0x300], eax
call fcn.004d36d0
mov ecx, eax
call fcn.004d3a50
mov esi, dword [ebp - 0x2c8]
push ecx
push str.appId
lea ecx, [ebp - 0x2ec]
mov dword [esi], eax
call fcn.004d36d0
mov ecx, eax
call fcn.004d3a50
push ecx
push str.packageName
lea ecx, [ebp - 0x2ec]
mov dword [esi + 4], eax
call fcn.004d36d0
lea ecx, [ebp - 0x148]
push 3
mov eax, dword [eax]
mov dword [ebp - 0x14c], ecx
lea ecx, [ebp - 0x14c]
push eax
call fcn.0041f5e0
mov byte [ebp - 4], 0xa
lea edi, [esi + 8]
mov edx, dword [ebp - 0x14c]
test edx, edx
jne 0x4e7c6c
xor ecx, ecx
jmp 0x4e7c86
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e7c71
sub ecx, esi
mov esi, dword [ebp - 0x2c8]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00402d50
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x148]
mov eax, dword [ebp - 0x14c]
cmp eax, ecx
je 0x4e7cac
push eax
call fcn.004a51fb
add esp, 4
push ecx
push str.versionName
lea ecx, [ebp - 0x2ec]
call fcn.004d36d0
lea ecx, [ebp - 0x148]
push 3
mov eax, dword [eax]
mov dword [ebp - 0x14c], ecx
lea ecx, [ebp - 0x14c]
push eax
call fcn.0041f5e0
mov byte [ebp - 4], 0xb
lea edi, [esi + 0x20]
mov edx, dword [ebp - 0x14c]
test edx, edx
jne 0x4e7cee
xor ecx, ecx
jmp 0x4e7d08
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e7cf3
sub ecx, esi
mov esi, dword [ebp - 0x2c8]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00402d50
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x148]
mov eax, dword [ebp - 0x14c]
cmp eax, ecx
je 0x4e7d2e
push eax
call fcn.004a51fb
add esp, 4
push ecx
push 0x55fc60
lea ecx, [ebp - 0x2ec]
call fcn.004d36d0
push eax
lea ecx, [ebp - 0x35c]
call fcn.004d3d10
mov byte [ebp - 4], 0xc
xor ebx, ebx
movsx eax, byte [ebp - 0x354]
mov dword [ebp - 0x2f4], ebx
cmp eax, 7
ja case.0x4e7d63.0
jmp dword [eax*4 + 0x4e825c]
mov ecx, dword [ebp - 0x35c]
cmp dword [ecx + 4], 0
sete al
test al, al
jne case.0x4e7d63.0
mov eax, dword [ecx]
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 0x2cc], eax
call fcn.0040b0b0
mov eax, dword [ebp - 0x2cc]
mov eax, dword [eax + 0x14]
inc eax
jmp 0x4e7da7
mov eax, dword [ebp - 0x35c]
mov eax, dword [eax + 4]
jmp 0x4e7da7
xor eax, eax
cmp ebx, eax
jae 0x4e8131
push ebx
lea ecx, [ebp - 0x35c]
call fcn.004d4570
push eax
lea ecx, [ebp - 0x34c]
call fcn.004d3d10
mov byte [ebp - 4], 0xd
call fcn.00401980
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x4e8127
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e7df6
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4e7df8
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x328], edi
mov dword [ebp - 0x314], 0
mov dword [ebp - 0x310], 0
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x320], 0
push ecx
push 0x55fc68
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 0xe
call fcn.004d36d0
mov ecx, eax
call fcn.004d3a50
mov dword [ebp - 0x320], eax
cmp eax, 1
jne 0x4e7ebc
mov eax, dword [ebp - 0x2f8]
add edi, 0xfffffff0
lea ecx, [eax - 0x10]
cmp ecx, edi
je 0x4e7eb1
cmp dword [edi + 0xc], 0
jl 0x4e7ea2
mov edx, dword [ecx]
cmp edx, dword [edi]
jne 0x4e7ea2
call fcn.004021e0
mov ecx, edi
mov esi, eax
call fcn.00402e90
lea eax, [esi + 0x10]
mov dword [ebp - 0x328], eax
mov eax, dword [ebp - 0x300]
jmp 0x4e7f51
push dword [eax - 0xc]
lea ecx, [ebp - 0x328]
push eax
call fcn.00402d50
mov eax, dword [ebp - 0x300]
jmp 0x4e7f51
push ecx
push str.diffApkMd5
lea ecx, [ebp - 0x34c]
call fcn.004d36d0
lea ecx, [ebp - 0x148]
push 3
mov eax, dword [eax]
mov dword [ebp - 0x14c], ecx
lea ecx, [ebp - 0x14c]
push eax
call fcn.0041f5e0
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x14c]
test edx, edx
jne 0x4e7efb
xor ecx, ecx
jmp 0x4e7f0f
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e7f00
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x328]
call fcn.00402d50
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x148]
mov eax, dword [ebp - 0x14c]
cmp eax, ecx
je 0x4e7f39
push eax
call fcn.004a51fb
add esp, 4
push ecx
push str.diffFileSize
lea ecx, [ebp - 0x34c]
call fcn.004d36d0
mov ecx, eax
call fcn.004d3a50
push ecx
push str.urlList
lea ecx, [ebp - 0x34c]
mov dword [ebp - 0x324], eax
call fcn.004d36d0
push eax
lea ecx, [ebp - 0x33c]
call fcn.004d3d10
xor esi, esi
mov byte [ebp - 4], 0x10
or ebx, 0xffffffff
nop dword [eax]
movsx eax, byte [ebp - 0x334]
cmp eax, 7
ja case.0x4e7f8c.0
jmp dword [eax*4 + 0x4e827c]
mov ecx, dword [ebp - 0x33c]
cmp dword [ecx + 4], 0
sete al
test al, al
jne case.0x4e7f8c.0
mov eax, dword [ecx]
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 0x2cc], eax
call fcn.0040b0b0
mov eax, dword [ebp - 0x2cc]
mov eax, dword [eax + 0x14]
inc eax
jmp 0x4e7fd0
mov eax, dword [ebp - 0x33c]
mov eax, dword [eax + 4]
jmp 0x4e7fd0
xor eax, eax
cmp esi, eax
jae 0x4e80e1
push esi
lea ecx, [ebp - 0x33c]
call fcn.004d4570
mov edx, dword [eax]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp byte [edx], 0
jne 0x4e8001
xor ecx, ecx
jmp 0x4e800f
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e8006
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00406560
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x148]
push 3
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14c], ecx
lea ecx, [ebp - 0x14c]
push eax
call fcn.0041f5e0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x2f0]
push dword [ebp - 0x14c]
call fcn.00401ff0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x148]
mov eax, dword [ebp - 0x14c]
cmp eax, ecx
je 0x4e8074
push eax
call fcn.004a51fb
add esp, 4
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x318]
call fcn.00411620
mov byte [ebp - 4], 0x11
mov eax, ebx
mov ecx, dword [ebp - 0x2f0]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4e80c2
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e80be
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4e80c2
mov ecx, edx
call edi
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x4e80db
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00405350
inc esi
jmp 0x4e7f80
mov esi, dword [ebp - 0x2c8]
lea eax, [ebp - 0x328]
push eax
lea ecx, [esi + 0xc]
call fcn.00426b20
lea ecx, [ebp - 0x33c]
call fcn.004d43c0
lea ecx, [ebp - 0x328]
call fcn.00426a60
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 0xc
call fcn.004d43c0
mov ebx, dword [ebp - 0x2f4]
inc ebx
jmp 0x4e7d51
push 0x80004005
call fcn.00401b40
mov ebx, dword [ebp - 0x2c8]
mov eax, 0x92492493
mov esi, dword [esi + 0x10]
mov edi, esi
push dword [ebp - 0x300]
mov ecx, dword [ebx + 0xc]
sub edi, ecx
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, esi
push eax
call fcn.00426ec0
mov eax, dword [ebx + 0xc]
lea ecx, [ebp - 0x35c]
add esp, 8
cmp eax, dword [ebx + 0x10]
sete al
xor ebx, ebx
test al, al
sete bl
call fcn.004d43c0
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x2f8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4e81bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e81b9
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4e81bb
call esi
lea ecx, [ebp - 0x2ec]
call fcn.004d43c0
lea ecx, [ebp - 0x1bc]
call fcn.00408f30
mov eax, dword [ebp - 0x30c]
test eax, eax
je 0x4e81e3
push eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
mov eax, dword [ebp - 0x2d0]
mov ecx, dword [ebp - 0x2d8]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x2d8]
call fcn.00405350
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4e823b
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e8237
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4e823b
mov ecx, edx
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret