Function at 0x1008b540
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x124]
sub esp, 0x124
push 0xffffffffffffffff
push 0x10173d15
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x101cfdb0]
xor eax, ebp
mov dword [ebp + 0x120], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0x12c]
push edi
call fcn.10086a50
test al, al
je 0x1008ba03
cmp dword [esi + 0x124], 0
lea ebx, [esi + 0x124]
je 0x1008b5ba
push 0xc5
push 0x101b3fd0
push str.load
push str.ERROR____s_n_s:__d_n_n
call fcn.10080f00
add esp, 0x10
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 0
push eax
push 4
lea eax, [ebp - 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x104
lea eax, [ebp + 0x1c]
push 0
push eax
call fcn.101193b0
mov eax, dword [ebp - 0x30]
add esp, 0xc
test eax, eax
jle 0x1008b725
push 0
lea ecx, [ebp - 0x34]
push ecx
push eax
lea eax, [ebp + 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x30]
cmp eax, 0x104
jae 0x1008ba28
mov byte [ebp + eax + 0x1c], 0
lea eax, [ebp - 0x29]
push 8
mov dword [ebp], 0
mov dword [ebp + 4], 0
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
mov dword [ebp - 0x20], eax
call fcn.10047940
lea ecx, [ebp]
mov dword [ebp - 0x24], eax
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x14], 0
lea edx, [ecx + 1]
mov dword [ebp + 0x18], 0xf
mov byte [ebp + 4], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1008b674
sub ecx, edx
lea eax, [ebp + 0x1c]
push ecx
push eax
lea ecx, [ebp]
call fcn.10046d30
mov dword [ebp - 0x24], 0
lea ecx, [esi + 0x128]
mov dword [ebp - 4], 1
lea eax, [ebp]
cmp ecx, eax
je 0x1008b6b9
cmp dword [ebp + 0x18], 0x10
lea eax, [ebp + 4]
push dword [ebp + 0x14]
cmovae eax, dword [ebp + 4]
push eax
call fcn.10046d30
push ecx
push ebx
call fcn.1008bca0
test dword [esi + 0xec], 0x10000
jne 0x1008b6da
sub esp, 8
lea eax, [ebp]
push eax
call fcn.1008c0e0
mov dword [ebx], eax
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
call fcn.100432e0
mov eax, dword [ebp + 0x18]
cmp eax, 0x10
jb 0x1008b6fe
inc eax
push eax
push dword [ebp + 4]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp]
push 8
push eax
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0xf
mov byte [ebp + 4], 0
mov dword [ebp], 0
call fcn.100479d0
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x34]
push 0
push eax
push 0x10
lea eax, [esi + 0x144]
push eax
push edi
call ebx
push 0
lea eax, [ebp - 0x34]
push eax
push 4
lea eax, [esi + 0x158]
push eax
push edi
call ebx
mov dword [esi + 0x15c], 0
lea ebx, [esi + 0xd8]
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x1c]
push ebx
mov eax, dword [eax]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
call fcn.10049150
nop
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x28]
push ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], eax
call fcn.10049150
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x1008b7a8
mov edi, dword [edi]
jmp 0x1008b7aa
xor edi, edi
lea ecx, [ebp - 0x28]
call fcn.100491b0
cmp eax, edi
je 0x1008b7fa
push str.list_iterators_incompatible
push 0x101aeae8
push 0
push 0xc3
push 0x101b31b0
push 2
call fcn.1011d740
add esp, 0x18
cmp eax, 1
jne 0x1008b7dc
int3
push 0
push 0xc3
push str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30133includelist
push 0x101aec28
push str._list_iterators_incompatible_
call fcn.1012c080
add esp, 0x14
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
push 3
setne bl
call fcn.10112de0
lea ecx, [ebp - 0x28]
call fcn.100491c0
lea ecx, [ebp - 0x10]
call fcn.10112e90
test bl, bl
je 0x1008b84d
lea ecx, [ebp - 0x1c]
call fcn.1007fb90
mov eax, dword [eax]
cmp dword [eax + 0xe4], 4
jne 0x1008b83a
inc dword [esi + 0x15c]
lea ecx, [ebp - 0x1c]
call fcn.1007fad0
lea ebx, [esi + 0xd8]
jmp 0x1008b780
push 3
lea ecx, [ebp - 0x10]
call fcn.10112de0
lea ecx, [ebp - 0x1c]
call fcn.100491c0
lea ecx, [ebp - 0x10]
call fcn.10112e90
test dword [esi + 0xec], 0x10000
je 0x1008b9fa
mov eax, dword [esi + 0x15c]
test eax, eax
jle 0x1008b9fa
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10117010
mov ecx, dword [esi + 0x15c]
shl ecx, 2
push ecx
push 0
push eax
mov dword [esi + 0x164], eax
call fcn.101193b0
mov eax, dword [esi + 0xdc]
lea ebx, [esi + 0xd8]
add esp, 0x10
lea ecx, [ebp - 0x1c]
xor edi, edi
mov eax, dword [eax]
push ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], eax
call fcn.10049150
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x28]
push ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], eax
call fcn.10049150
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x1008b900
mov ebx, dword [ebx]
jmp 0x1008b902
xor ebx, ebx
lea ecx, [ebp - 0x28]
call fcn.100491b0
cmp eax, ebx
je 0x1008b952
push str.list_iterators_incompatible
push 0x101aeae8
push 0
push 0xc3
push 0x101b31b0
push 2
call fcn.1011d740
add esp, 0x18
cmp eax, 1
jne 0x1008b934
int3
push 0
push 0xc3
push str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30133includelist
push 0x101aec28
push str._list_iterators_incompatible_
call fcn.1012c080
add esp, 0x14
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
push 3
sete bl
call fcn.10112de0
lea ecx, [ebp - 0x28]
call fcn.100491c0
lea ecx, [ebp - 0x10]
call fcn.10112e90
test bl, bl
jne 0x1008b9e0
lea ecx, [ebp - 0x1c]
call fcn.1007fb90
mov eax, dword [eax]
cmp dword [eax + 0xe4], 4
jne 0x1008b99f
lea ecx, [ebp - 0x1c]
call fcn.1007fb90
mov ecx, dword [esi + 0x164]
mov eax, dword [eax]
mov dword [ecx + edi*4], eax
mov eax, dword [esi + 0x164]
mov eax, dword [eax + edi*4]
cmp dword [eax + 0xf0], edi
je 0x1008b9cc
push 0xe2
push 0x101b3fd0
push str.animate_Image_load_fail
push str.ERROR____s_n_s:__d_n_n
call fcn.10080f00
add esp, 0x10
lea ecx, [ebp - 0x1c]
inc edi
call fcn.1007fad0
lea ebx, [esi + 0xd8]
jmp 0x1008b8d8
push 3
lea ecx, [ebp - 0x10]
call fcn.10112de0
lea ecx, [ebp - 0x1c]
call fcn.100491c0
lea ecx, [ebp - 0x10]
call fcn.10112e90
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x70]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.101163c0
lea esp, [ebp + 0x124]
pop ebp
ret 4
call fcn.10117230
int3