Function at 0x40204f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50ebee
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x551bd0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x551bd0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
add eax, 0xc
cmp dword [eax + 0x18], 8
jb 0x402099
mov eax, dword [eax + 4]
jmp 0x40209c
add eax, 4
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402306
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x4020d6
mov ecx, dword [esi + 4]
mov dword [ecx + 0x98], eax
cmp ebx, edi
je 0x4020e1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x535d58
push ebx
lea ecx, [esp + 0x18]
call fcn.00401685
push str.aapt.exe_dump_badging__
lea ecx, [esp + 0x18]
mov dword [esp + 0x7c], edi
call fcn.00403850
mov eax, dword [esi + 4]
push 0xffffffffffffffff
add eax, 0xc
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.004039ea
push 0x535df8
lea ecx, [esp + 0x18]
call fcn.00403850
push ebx
lea ecx, [esp + 0x34]
call fcn.00401685
mov byte [esp + 0x78], 1
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x402141
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
call fcn.00406642
pop ecx
test al, al
je 0x40224f
mov eax, dword [esi + 4]
add eax, 0x7c
push eax
sub esp, 0x1c
lea eax, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov edi, 0x535dfc
call fcn.00403757
call fcn.00402326
mov eax, dword [esi + 4]
add eax, 0x60
push eax
sub esp, 0x1c
lea eax, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov edi, str.package:_name
call fcn.00403757
call fcn.00402326
mov eax, dword [esi + 4]
add eax, 0x44
push eax
sub esp, 0x1c
lea eax, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov edi, str.versionName
call fcn.00403757
call fcn.00402326
push ebx
lea ecx, [esp + 0x50]
call fcn.00401685
lea eax, [esp + 0x4c]
push eax
sub esp, 0x1c
lea eax, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x9c], 2
mov edi, str.sdkVersion:
call fcn.00403757
call fcn.00402326
test al, al
je 0x402217
cmp dword [esp + 0x64], 8
mov eax, dword [esp + 0x50]
jae 0x402207
lea eax, [esp + 0x50]
push eax
call fcn.0049ada9
pop ecx
mov ecx, dword [esi + 4]
mov dword [ecx + 0x9c], eax
mov eax, dword [esi + 4]
add eax, 0xa0
push eax
sub esp, 0x1c
lea eax, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00403757
call fcn.004024e7
push 0
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x80], 1
call fcn.0040184d
xor edi, edi
mov eax, dword [esi + 4]
add eax, 0x28
push eax
sub esp, 0x1c
lea eax, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00403757
push esi
call fcn.004023be
push ebx
lea ecx, [esp + 0x18]
call fcn.00401829
push str.aapt.exe_dump_xmltree__
lea ecx, [esp + 0x18]
call fcn.00403850
mov eax, dword [esi + 4]
push 0xffffffffffffffff
add eax, 0xc
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.004039ea
push str.__AndroidManifest.xml
lea ecx, [esp + 0x18]
call fcn.00403850
push ebx
lea ecx, [esp + 0x34]
call fcn.00401829
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x4022c1
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
call fcn.00406642
pop ecx
test al, al
je 0x4022ee
mov esi, dword [esi + 4]
sub esp, 0x1c
lea eax, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
add esi, 4
call fcn.00403757
call fcn.00402597
push edi
push 1
lea ecx, [esp + 0x38]
call fcn.0040184d
push edi
push 1
lea ecx, [esp + 0x1c]
call fcn.0040184d
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0049a49b
mov esp, ebp
pop ebp
ret