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

Disassembly:
sub esp, 0x268
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x70]
push 0x104
push eax
call fcn.1000bd40
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_SearchPathA]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x174]
push ecx
push edx
push 0x104
push 0x10043344
lea eax, [esp + 0x80]
push 0x1004334c
push eax
call esi
test eax, eax
mov dword [esp + 0x10], eax
jne 0x1001e28f
lea ecx, [esp + 0x18]
lea edx, [esp + 0x174]
push ecx
push edx
push 0x104
push 0x10043358
lea eax, [esp + 0x80]
push 0x10043360
push eax
call esi
test eax, eax
jne 0x1001e28f
lea ecx, [esp + 0x18]
lea edx, [esp + 0x174]
push ecx
push edx
push 0x104
push str..xml
lea eax, [esp + 0x80]
push str.IBMTPI
push eax
call esi
test eax, eax
jne 0x1001e28f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x268
ret
push 0
push 0x20
push 4
push 0
push 0
lea ecx, [esp + 0x188]
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
jne 0x1001e2c4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x268
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 1]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
xor ebp, ebp
test edi, edi
je 0x1001e311
lea eax, [esp + 0x20]
push 0
push eax
lea ecx, [edi + ebp]
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001e311
mov eax, dword [esp + 0x20]
mov esi, 1
test eax, eax
jbe 0x1001e32c
mov esi, dword [esp + 0x14]
sub ebx, eax
add ebp, eax
jmp 0x1001e2df
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x268
ret
push 0
push ebp
push edi
call fcn.10024130
add esp, 0xc
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
jne 0x1001e35d
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x268
ret
mov edi, dword [esp + 0x27c]
test edi, edi
je 0x1001e3a1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1001e3e4
push 0
push 0x1004c1c8
push ebx
push 0x10043374
push 0x104
push edi
push 0x1004337c
push 0x10043384
push 0
call fcn.10025600
mov esi, eax
add esp, 0x24
test esi, esi
je 0x1001e4e7
mov edi, dword [esp + 0x280]
test edi, edi
je 0x1001e489
mov eax, dword [esp + 0x10]
push 0
test eax, eax
push 0x1004c1c8
push ebx
je 0x1001e418
push str.PKGMGR
lea eax, [esp + 0x38]
push 0xc
push eax
push 0x100433a4
push str.RELEASE
push 0
call fcn.10025600
add esp, 0x24
mov esi, eax
jmp 0x1001e447
push 1
push 0x1004c1c8
push ebx
push 0x104
push edi
push 0x1004338c
call fcn.10026150
add esp, 0x18
test eax, eax
je 0x1001e4e7
cmp word [edi], 0
je 0x1001e4e7
mov esi, 1
jmp 0x1001e3a1
lea ecx, [esp + 0x34]
push 0xc
push ecx
push 0x100433b4
call fcn.10026150
add esp, 0x18
test eax, eax
je 0x1001e4e7
mov al, byte [esp + 0x28]
test al, al
je 0x1001e4e7
mov esi, 1
jmp 0x1001e44f
test esi, esi
je 0x1001e4e7
lea edx, [esp + 0x1c]
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x34]
push str._x._02x._04x
push edx
call dword [sym.imp.MSVCRT.dll_sscanf]
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
add esp, 0x14
shl eax, 8
or eax, ebp
shl eax, 0x10
or eax, ecx
mov dword [edi], eax
test esi, esi
je 0x1001e4e7
mov esi, dword [esp + 0x284]
test esi, esi
je 0x1001e4e7
mov eax, dword [esp + 0x288]
test eax, eax
je 0x1001e4e7
push eax
push ebx
lea ecx, [esp + 0x48]
push 0x18
push ecx
lea edx, [esp + 0x68]
push 0x18
push edx
lea eax, [esp + 0x40]
push 0x18
push eax
call fcn.10026b10
add esp, 0x20
test eax, eax
je 0x1001e4e7
mov al, byte [esp + 0x28]
test al, al
je 0x1001e4e7
lea ecx, [esp + 0x28]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallD1A4DEBD_C2EE_449f_B9FB_E8409F9A0BC5
push 0x10043430
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
push ebx
call fcn.100232e0
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x268
ret