Function at 0x40fece
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov eax, ecx
mov dword [ebp - 0x38], edx
xor edx, edx
mov dword [ebp - 8], eax
mov ecx, edx
mov dword [ebp - 0x1c], edx
push esi
mov eax, dword [eax]
mov ebx, edx
push edi
mov dword [ebp - 0x34], ecx
add eax, 0x40
mov dword [ebp - 0x30], ecx
mov edi, edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x2c], eax
push ecx
push ecx
mov ecx, eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18], edx
mov byte [ebp - 3], dl
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ebx
call fcn.00458a54
mov esi, eax
test esi, esi
js 0x41029f
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x41029f
imul esi, eax, 0x14
push esi
call fcn.0044569a
mov edx, eax
mov dword [ebp - 0x1c], edx
test edx, edx
jne 0x40ff49
mov esi, 0xc0000017
jmp 0x41029f
push esi
xor esi, esi
push esi
push edx
call fcn.004c2a80
add esp, 0xc
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], esi
push eax
push esi
mov esi, dword [ebp - 0x2c]
mov ecx, esi
push 8
push 2
pop edx
call fcn.00458a90
test eax, eax
js 0x410253
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00458b32
mov edi, dword [ebp - 0x14]
mov esi, eax
test esi, esi
js 0x410272
movzx eax, word [edi + 0x22]
mov ecx, 0xff
cmp ax, cx
jbe 0x410225
mov ecx, 0x7fff
cmp ax, cx
ja 0x410225
mov esi, 0x200
test esi, eax
je 0x41000d
push dword [ebp - 0x38]
lea edx, [ebp - 0x24]
mov ecx, edi
call fcn.00410466
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x58]
test edx, edx
jns 0x410008
mov esi, dword [ebp - 0x10]
or ecx, 0x80
mov dword [eax + 0x58], ecx
lea eax, [edi + 8]
or dword [esi], 0x20000000
push dword [0x518b00]
push eax
mov eax, dword [ebp - 0x2c]
add eax, 0x10
push eax
push 0x20
pop ecx
call fcn.0040d760
jmp 0x410010
or ecx, esi
mov dword [eax + 0x58], ecx
mov esi, dword [ebp - 0x10]
mov eax, 0x1000
mov byte [ebp - 2], 0
test word [edi + 0x22], ax
je 0x41007e
lea edx, [ebp - 0xc]
mov byte [ebp - 2], 0
mov ecx, edi
call fcn.0040fdef
mov ebx, dword [ebp - 0xc]
test eax, eax
js 0x410079
test byte [ebx + 8], 8
mov byte [ebp - 2], 0
je 0x41006a
cmp word [ebp - 0x30], 0
mov byte [ebp - 2], 0
jne 0x41006a
xor ecx, ecx
mov dword [esi + 0x10], ebx
inc ecx
xor ebx, ebx
mov dword [ebp - 0x30], ecx
mov byte [ebp - 2], cl
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ebx
or dword [ecx + 0x58], 0x80000
or dword [esi], 0x800000
test ebx, ebx
je 0x410079
push ebx
call fcn.0044573c
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov eax, 0x1000
mov edx, dword [ebp - 8]
mov ecx, 0x100
mov byte [ebp - 1], 0
test word [edi + 0x22], cx
je 0x410100
or dword [edx + 0x58], ecx
or dword [esi], 0x40000000
mov byte [ebp - 1], 0
test word [edi + 0x22], ax
je 0x410100
lea edx, [ebp - 0xc]
mov byte [ebp - 1], 0
mov ecx, edi
call fcn.0040fdef
mov ebx, dword [ebp - 0xc]
test eax, eax
js 0x4100fd
test byte [ebx + 8], 4
mov edx, dword [ebp - 8]
mov byte [ebp - 1], 0
je 0x4100ee
cmp word [ebp - 0x34], 0
mov byte [ebp - 1], 0
jne 0x4100ee
xor ecx, ecx
mov dword [esi + 0x10], ebx
or dword [edx + 0x58], 0x8000
inc ecx
xor ebx, ebx
mov dword [ebp - 0x34], ecx
or dword [esi], 0x1000000
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], cl
test ebx, ebx
je 0x410100
push ebx
call fcn.0044573c
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov edx, dword [ebp - 8]
movzx eax, word [edi + 0x22]
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi]
test eax, 0x400
je 0x41014c
test ecx, 0x20000000
jne 0x41011e
or dword [edx + 0x58], 0x20
push 0
lea edx, [ebp - 3]
mov ecx, edi
call fcn.00458086
test eax, eax
js 0x41013e
cmp byte [ebp - 3], 0
je 0x41013e
mov ecx, dword [ebp - 8]
or dword [ecx + 0x58], 0x4000
or dword [esi], 0x4000000
mov ecx, dword [esi]
movzx eax, word [edi + 0x22]
jmp 0x41014f
mov eax, dword [ebp - 0x14]
movzx eax, ax
mov edx, eax
mov dword [ebp - 0x14], edx
test eax, 0x2000
je 0x410176
mov edx, dword [ebp - 8]
or dword [edx + 0x58], 0x10000
or dword [esi], 0x8000000
mov ecx, dword [esi]
movzx eax, word [edi + 0x22]
jmp 0x410179
mov eax, dword [ebp - 0x14]
movzx eax, ax
mov edx, eax
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 8]
test eax, 0x800
je 0x41019d
or dword [edx + 0x58], 0x40
or dword [esi], 0x10000000
mov ecx, dword [esi]
movzx eax, word [edi + 0x22]
jmp 0x4101a0
mov eax, dword [ebp - 0x14]
movzx eax, ax
mov edx, 0x1000
test edx, eax
je 0x4101b8
cmp byte [ebp - 1], 0
jne 0x4101b8
cmp byte [ebp - 2], 0
je 0x4101bf
test eax, 0x4000
je 0x4101c7
or ecx, 0x2000000
mov dword [esi], ecx
test ecx, 0x34000000
je 0x410202
push 8
pop edx
mov ecx, edi
call fcn.0045643c
mov esi, eax
test esi, esi
js 0x4101f7
lea eax, [ebp - 0x28]
mov edx, 0xffff
push eax
push 2
mov ecx, edi
call fcn.00455fca
mov esi, eax
test esi, esi
jns 0x4101ff
cmp esi, 0xc0000225
jne 0x410272
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
mov dword [esi + 4], edi
xor edi, edi
and dword [ebp - 0x28], edi
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x24]
and dword [ebp - 0x24], edi
inc dword [ebp - 0x18]
mov dword [esi + 0xc], ecx
add esi, 0x14
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
test edi, edi
je 0x410235
mov ecx, edi
call fcn.00455ede
xor edi, edi
mov dword [ebp - 0x14], edi
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
mov ecx, esi
push 8
push 2
pop edx
call fcn.00458a90
test eax, eax
jns 0x40ff7e
mov ecx, dword [ebp - 8]
lea esi, [eax + 0x3ffffddb]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x5c], edx
mov edx, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
neg esi
mov dword [ecx + 0x60], edx
sbb esi, esi
and esi, eax
test edi, edi
je 0x41027d
mov ecx, edi
call fcn.00455ede
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x410289
call fcn.00455ede
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x410295
call fcn.00455ede
test ebx, ebx
je 0x41029f
push ebx
call fcn.0044573c
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
call fcn.004102b1
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret