Function at 0x101aecc0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x101d9732
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
je 0x101aee4d
lea esi, [esp + 0x1c]
mov dword [esp + 0x14], ebx
call fcn.1019f530
mov dword [esp + 0x3c], ebx
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x101aedec
cmp dword [ebp + 0x18], 8
lea edi, [ebp + 4]
jb 0x101aed20
mov eax, dword [edi]
jmp 0x101aed22
mov eax, edi
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x101aedec
push ebx
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x4c], ebx
push 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x50], ebx
mov edx, dword [esi]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne bl
cmp dword [esi], 0xffffffff
je 0x101aed7f
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x101aed7f
mov dword [esi], 0xffffffff
test bl, bl
je 0x101aedea
cmp dword [esp + 0x44], 4
jne 0x101aedea
mov eax, dword [esp + 0x18]
cmp eax, 0x10000
je 0x101aed9c
cmp eax, 0x20000
jne 0x101aedea
cmp dword [ebp + 0x18], 8
jb 0x101aeda6
mov eax, dword [edi]
jmp 0x101aeda8
mov eax, edi
push 0x10
push 0x10
push 0x10
push 1
push eax
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
test eax, eax
mov dword [esp + 0x14], eax
je 0x101aedea
mov esi, eax
mov dword [esp + 0x3c], 0xffffffff
lea eax, [esp + 0x1c]
call fcn.1019f550
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
xor ebx, ebx
cmp dword [ebp + 0x18], 8
jb 0x101aedf7
mov ecx, dword [ebp + 4]
jmp 0x101aedfa
lea ecx, [ebp + 4]
lea edx, [esp + 0x20]
push edx
call fcn.10029de0
mov byte [esp + 0x3c], 1
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0x28], ebx
je 0x101aee63
mov byte [esp + 0x3c], 0
lea eax, [esp + 0x20]
push eax
call fcn.10029e70
mov dword [esp + 0x3c], 0xffffffff
cmp esi, ebx
je 0x101aee4d
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x101aee44
cmp eax, ebx
je 0x101aee44
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push ecx
push edx
call sub.gdiplus.dll_GdipCreateHICONFromBitmap
cmp eax, ebx
je 0x101aee7a
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0x14]
mov byte [esp + 0x3c], 0
lea eax, [esp + 0x20]
push eax
call fcn.10029e70
mov dword [esp + 0x3c], 0xffffffff
cmp esi, ebx
je 0x101aeeb6
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x101aeead
cmp eax, ebx
je 0x101aeead
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret