Function at 0x2e085e5a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x2e109148]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor ecx, ecx
push edi
mov edi, dword [ebx]
inc ecx
test byte [ebp + 0xc], 0x20
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], edi
jne 0x2e085f31
xor esi, esi
test byte [ebp + 0xc], 0x11
jne 0x2e085eaa
lea eax, [edi + 0x30]
push eax
call fcn.2e08ba62
cmp eax, esi
jne 0x2e085f28
or ecx, 0xffffffff
mov ebx, dword [ebp + 0xc]
and ebx, 4
mov dword [ebp - 0x12c], ebx
neg ebx
sbb ebx, ebx
and ebx, 0xe
add ebx, 0x12
test byte [ebp + 0xc], 1
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x114], esi
je 0x2e085f46
lea eax, [ebp - 0x110]
push eax
push esi
mov eax, ebx
or eax, 0x1000
push eax
lea eax, [edi + 0x30]
push eax
call fcn.2e08ba76
cmp eax, esi
jl 0x2e086272
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
lea edx, [ebp - 0x114]
push edx
push esi
push esi
push ebx
push dword [0x2e10b9c4]
push eax
call dword [ecx + 0xc]
mov ebx, eax
cmp ebx, esi
jge 0x2e085f3f
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
jmp 0x2e086272
cmp eax, 1
jne 0x2e086272
push dword [ebp + 0xc]
push ebx
call fcn.2e08bb81
jmp 0x2e086272
xor ebx, ebx
jmp 0x2e086216
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x110], eax
cmp eax, esi
jne 0x2e086164
cmp ecx, 1
jne 0x2e085fda
lea eax, [edi + 0x30]
push eax
call fcn.2e08ba62
cmp eax, esi
je 0x2e085fdf
cmp eax, 1
jne 0x2e086272
lea eax, [ebp - 0x110]
push eax
push esi
cmp dword [ebp - 0x12c], esi
jne 0x2e086000
push 0x30002
lea eax, [edi + 0x30]
push eax
call fcn.2e08ba76
cmp eax, esi
jl 0x2e086272
jne 0x2e086172
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x118]
push edx
push esi
push esi
push 0x12
push dword [0x2e10b9c4]
mov dword [ebp - 0x118], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x2e086172
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x2e086172
cmp ecx, 0xffffffff
jne 0x2e085f72
lea eax, [ebp - 0x110]
push eax
push esi
push esi
push ebx
push esi
lea eax, [edi + 0x30]
push eax
call fcn.2e08ba9b
cmp eax, esi
jge 0x2e086172
jmp 0x2e086272
push 0x4001012
push esi
call fcn.2e08ba76
cmp eax, esi
mov dword [ebp - 0x11c], eax
jl 0x2e086149
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
lea edx, [ebp - 0x114]
push edx
push esi
push esi
push 0x12
push dword [0x2e10b9cc]
push eax
call dword [ecx + 0xc]
cmp eax, esi
mov dword [ebp - 0x11c], eax
jl 0x2e086149
push esi
push 0x106
lea eax, [ebp - 0x10c]
push eax
add edi, 0x72
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push eax
push edi
call fcn.2e07ddf3
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x120], eax
cmp eax, 0xffffffff
jne 0x2e08609a
mov dword [ebp - 0x11c], 0x80070005
jmp 0x2e086149
mov edi, 0x1000
push edi
call fcn.2e01956e
pop ecx
mov dword [ebp - 0x128], eax
cmp eax, esi
je 0x2e086135
push esi
lea ecx, [ebp - 0x124]
push ecx
push edi
push eax
jmp 0x2e086108
cmp dword [ebp - 0x124], esi
jbe 0x2e086118
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax]
lea edx, [ebp - 0x13c]
push edx
push dword [ebp - 0x124]
push dword [ebp - 0x128]
push eax
call dword [ecx + 0x10]
cmp eax, esi
mov dword [ebp - 0x11c], eax
jl 0x2e086129
cmp dword [ebp - 0x13c], esi
je 0x2e086129
push esi
lea eax, [ebp - 0x124]
push eax
push edi
push dword [ebp - 0x128]
push dword [ebp - 0x120]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x2e0860c0
push dword [ebp - 0x114]
call fcn.2e085a8a
mov dword [ebp - 0x118], eax
push dword [ebp - 0x128]
call fcn.2e01957b
pop ecx
push dword [ebp - 0x120]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x11c], esi
jge 0x2e08616c
mov eax, dword [ebp - 0x110]
cmp eax, esi
je 0x2e086159
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x11c]
jmp 0x2e086272
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
jmp 0x2e086172
mov edi, dword [ebp - 0x134]
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x130]
push edx
push esi
push esi
push 0x10
push esi
push dword [0x2e10b9c8]
mov dword [ebp - 0x130], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x2e0861b0
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80043200
jmp 0x2e086272
cmp dword [ebp - 0x114], esi
jne 0x2e086210
cmp dword [ebp - 0x12c], esi
je 0x2e0861c3
push 0x10
pop ebx
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
lea edx, [ebp - 0x114]
push edx
push esi
push ebx
push esi
push dword [0x2e10b9c4]
push eax
call dword [ecx + 0x10]
mov ebx, eax
cmp ebx, esi
jge 0x2e0861ff
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp ebx, 0x80030002
jne 0x2e085f21
jmp 0x2e0861a6
push dword [ebp - 0x114]
call fcn.2e085a8a
mov dword [ebp - 0x118], eax
mov ebx, dword [ebp - 0x118]
add edi, 0x30
push edi
push dword [0x2e10b9c4]
call fcn.2e07e09c
mov eax, dword [ebp - 0x138]
mov eax, dword [eax]
mov ecx, 0x4000
or word [eax + 4], cx
movzx edx, word [eax + 4]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], esi
mov ecx, dword [ebp - 0x110]
mov dword [eax + 0x28], ecx
mov ecx, dword [ebp - 0x114]
mov dword [eax + 0x2c], ecx
mov ecx, dword [ebp + 0xc]
shr ecx, 2
and ecx, 1
or ecx, 2
shl ecx, 4
and edx, 0xffef
or ecx, edx
mov word [eax + 4], cx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.2e01bfc6
leave
ret 8