Function at 0x10958b0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x115e76c]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x130], ecx
push 0x87
push 0x1139244
mov eax, dword [ebp - 0x130]
push eax
call fcn.0100a1f0
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
call fcn.010116d0
test eax, eax
jne 0x1095902
push 0x88
push 0x113927c
call fcn.0100a6d0
test eax, eax
je 0x1095902
int3
cmp dword [ebp + 0x10], 0
je 0x109592d
push 1
push 0x18
mov eax, dword [ebp + 0x10]
push eax
call fcn.010116f0
test eax, eax
jne 0x109592d
push 0x8b
push 0x11392b4
call fcn.0100a6d0
test eax, eax
je 0x109592d
int3
mov edx, dword [ebp + 0xc]
and edx, 0x4000
je 0x109594c
push 0x8c
push 0x11392ec
call fcn.0100a6d0
test eax, eax
je 0x109594c
int3
mov ecx, dword [ebp - 0x130]
cmp dword [ecx + 4], 0xffffffff
je 0x109596c
push 0x8f
push 0x1139324
call fcn.0100a6d0
test eax, eax
je 0x109596c
int3
mov eax, dword [ebp + 0xc]
and eax, 0xffff7fff
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp - 0x130]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x130]
mov dword [edx + 4], 0xffffffff
mov ecx, dword [ebp - 0x130]
add ecx, 0xc
call fcn.01009890
cmp dword [ebp + 8], 0
je 0x10959d7
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x104
jge 0x10959d7
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x128]
push eax
call fcn.01096900
test eax, eax
jne 0x10959d5
xor eax, eax
jmp 0x1095c03
jmp 0x10959de
xor eax, eax
jmp 0x1095c03
lea ecx, [ebp - 0x128]
push ecx
mov ecx, dword [ebp - 0x130]
add ecx, 0xc
call fcn.01009740
mov dword [ebp - 8], 0
mov edx, dword [ebp + 0xc]
and edx, 3
mov dword [ebp - 0x134], edx
je 0x1095a1c
cmp dword [ebp - 0x134], 1
je 0x1095a25
cmp dword [ebp - 0x134], 2
je 0x1095a2e
jmp 0x1095a37
mov dword [ebp - 8], SysReAllocString
jmp 0x1095a4f
mov dword [ebp - 8], 0x40000000
jmp 0x1095a4f
mov dword [ebp - 8], 0xc0000000
jmp 0x1095a4f
xor eax, eax
jne 0x1095a4f
push 0xb4
push 0x113935c
call fcn.0100a6d0
test eax, eax
je 0x1095a4f
int3
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
and edx, 0x70
mov dword [ebp - 0x138], edx
cmp dword [ebp - 0x138], 0x40
ja case.0x1095a78.1
mov eax, dword [ebp - 0x138]
movzx ecx, byte [eax + 0x1095c28]
jmp dword [ecx*4 + 0x1095c14]
xor edx, edx
jne case.0x1095a78.0
push 0xbc
push 0x1139394
call fcn.0100a6d0
test eax, eax
je case.0x1095a78.0
int3
mov dword [ebp - 4], 0
jmp 0x1095ab9
mov dword [ebp - 4], 1
jmp 0x1095ab9
mov dword [ebp - 4], 2
jmp 0x1095ab9
mov dword [ebp - 4], 3
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 0xc]
and ecx, 0x80
neg ecx
sbb ecx, ecx
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0xc]
and edx, 0x1000
je 0x1095b01
mov eax, dword [ebp + 0xc]
and eax, 0x2000
je 0x1095af8
mov dword [ebp - 0x1c], 4
jmp 0x1095aff
mov dword [ebp - 0x1c], 2
jmp 0x1095b08
mov dword [ebp - 0x1c], 3
mov ecx, dword [ebp + 0xc]
and ecx, 0xc0000
cmp ecx, 0xc0000
jne 0x1095b2d
push 0xe4
push 0x11393cc
call fcn.0100a6d0
test eax, eax
je 0x1095b2d
int3
mov dword [ebp - 0x12c], pe_nt_image_headers32
mov eax, dword [ebp + 0xc]
and eax, 0x10000
je 0x1095b53
mov ecx, dword [ebp - 0x12c]
or ecx, 0x20000000
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp + 0xc]
and edx, 0x20000
je 0x1095b6f
mov eax, dword [ebp - 0x12c]
or eax, 0x80000000
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp + 0xc]
and ecx, 0x40000
je 0x1095b8c
mov edx, dword [ebp - 0x12c]
or edx, 0x10000000
mov dword [ebp - 0x12c], edx
mov eax, dword [ebp + 0xc]
and eax, 0x80000
je 0x1095ba8
mov ecx, dword [ebp - 0x12c]
or ecx, 0x8000000
mov dword [ebp - 0x12c], ecx
push 0
mov edx, dword [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x1095be5
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.01095370
xor eax, eax
jmp 0x1095c03
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x130]
mov dword [eax + 8], 1
mov eax, 1
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0109d5d0
mov esp, ebp
pop ebp
ret 0xc