Function at 0x4095f0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
push 0x56ff7c
call sub.kernel32.dll_LoadLibraryA
test eax, eax
je 0x4099c0
push 0x56ff9c
push eax
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x4099f1
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
and esp, 0xfffffff0
push esi
push edi
call fcn.00406ac0
add esp, 8
mov ebx, eax
push esi
push edi
call fcn.00406ca0
add esp, 8
mov edx, dword [edi + 0x3c]
xor esi, esi
cmp dword [edx + edi], 0x4550
lea ecx, [edx + edi]
mov dword [ebp - 0x3c], edx
cmove esi, ecx
mov ecx, dword [esi + 0x34]
push 4
push 0x1000
mov dword [ebp - 0x1c], eax
push eax
mov dword [ebp - 0x40], ecx
push ecx
call sub.kernel32.dll_VirtualAlloc
test eax, eax
mov ecx, eax
mov dword [ebp - 0x10], eax
jne 0x409690
push 4
push 0x1000
push dword [ebp - 0x1c]
push 0
call sub.kernel32.dll_VirtualAlloc
test eax, eax
mov ecx, eax
mov dword [ebp - 0x10], eax
je 0x409a22
push ebx
push dword [ebp + 8]
push dword [ebp - 0x10]
call sub.msvcrt.dll_memcpy
add esp, 0xc
movzx ebx, word [esi + 6]
mov dword [ebp - 0x18], esi
test bx, bx
je 0x4096f1
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x10]
mov edi, 1
lea esi, [eax + ecx + 0x10c]
nop dword [eax]
mov eax, dword [esi - 4]
mov ecx, dword [esi]
lea edx, [ecx + eax]
cmp edx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea edx, [edx + ecx]
cmova edx, edi
add ecx, eax
mov ecx, dword [esi - 8]
cmovb edx, edi
add ecx, dword [ebp - 0x10]
push eax
push edx
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
add esi, 0x28
dec bx
jne 0x4096c0
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x84], 0
je 0x4097e1
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x80]
mov eax, dword [ebp - 0x10]
mov esi, dword [ecx + eax + 0xc]
test esi, esi
je 0x4097e1
mov eax, dword [ebp - 0x10]
add ecx, eax
add eax, 2
mov dword [ebp - 0x48], eax
jmp 0x409741
mov ecx, dword [ebp - 0x44]
mov esi, dword [ecx + 0x20]
add ecx, 0x14
test esi, esi
je 0x4097e1
mov eax, dword [ecx + 0x10]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x4097e1
add esi, dword [ebp - 0x10]
mov edi, dword [ecx]
mov dword [ebp - 0x44], ecx
mov eax, esi
nop dword [eax]
cmp byte [eax], 0
lea eax, [eax + 1]
jne 0x409760
push esi
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
inc eax
cmp eax, 1
ja 0x40977e
push esi
call sub.kernel32.dll_GetModuleHandleA
mov ebx, eax
test edi, edi
mov eax, dword [ebp - 0x10]
cmove edi, dword [ebp - 0x14]
mov eax, dword [edi + eax]
test eax, eax
je 0x409730
mov ecx, dword [ebp - 0x10]
xor esi, esi
add dword [ebp - 0x14], ecx
add edi, ecx
jmp 0x4097c1
and eax, 0x7fffffff
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
mov ecx, dword [ebp - 0x14]
mov dword [ecx + esi*4], eax
mov eax, dword [edi + 4]
inc esi
add edi, 4
test eax, eax
je 0x409730
test eax, eax
js 0x4097a0
add eax, dword [ebp - 0x48]
mov ecx, 0xffffffff
nop dword [eax]
cmp byte [eax + ecx + 1], 0
lea ecx, [ecx + 1]
jne 0x4097d0
cmp ecx, 2
jae 0x4097a5
jmp 0x4097b2
mov edi, dword [ebp - 0x40]
cmp edi, dword [ebp - 0x10]
je 0x409871
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xa4], 0
je 0x409871
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
mov esi, dword [eax + ecx + 4]
test esi, esi
je 0x409871
mov edx, dword [ebp - 0x10]
mov ecx, edx
lea ebx, [eax + edx + 4]
add eax, edx
sub ecx, edi
jmp 0x409836
mov edx, dword [ebp - 0x14]
mov esi, dword [edx]
lea edi, [eax + esi]
lea ebx, [eax + esi + 4]
mov esi, dword [eax + esi + 4]
mov eax, edi
test esi, esi
je 0x409871
lea edi, [esi - 8]
cmp edi, 2
jb 0x409825
shr edi, 1
lea esi, [eax + 8]
mov dword [ebp - 0x14], ebx
jmp 0x409856
add esi, 2
dec edi
je 0x409820
movzx ebx, word [esi]
cmp ebx, 0x1000
jb 0x409850
and ebx, 0xfff
mov edx, dword [eax]
add ebx, dword [ebp - 0x10]
add dword [edx + ebx], ecx
jmp 0x409850
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
movzx esi, word [eax + 6]
test si, si
mov word [ebp - 0x36], si
je 0x409956
mov eax, dword [ebp - 0x3c]
add dword [ebp - 0x1c], edx
neg esi
mov bx, 1
mov dword [ebp - 0x14], esi
lea edi, [eax + edx + 0x104]
jmp 0x4098e2
test esi, 0x20000000
mov edx, 0x40
mov esi, 4
cmove edx, esi
lea esi, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push esi
push edx
push eax
push ecx
call fcn.004f099c
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x40996d
lea eax, [esi + ebx + 1]
add edi, 0x28
inc ebx
cmp ax, 1
je 0x409956
mov eax, dword [edi + 4]
test eax, eax
je 0x4098d4
mov ecx, dword [edi]
add ecx, edx
cmp dword [ebp - 0x1c], ecx
jbe 0x4098d4
mov esi, dword [edi + 0x18]
test esi, 0x40000000
jne 0x409920
test esi, esi
js 0x40993d
test esi, 0x20000000
mov edx, 0x10
mov esi, 1
jmp 0x4098b0
test esi, esi
js 0x4098a0
test esi, 0x20000000
mov edx, 0x20
mov esi, 2
jmp 0x4098b0
mov edx, pe_nt_image_headers32
test esi, 0x20000000
jne 0x4098b3
int3
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x28]
add eax, edx
push 0
push 1
push edx
call eax
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.kernel32.dll_GetLastError
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], 0x56faa4
mov dword [ebp - 0x30], 2
mov word [ebp - 0x38], bx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x36]
mov dword [ebp - 0x58], fcn.004ea080
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x50], fcn.004ea080
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 2
lea eax, [ebp - 0x34]
push 0x56fab4
push eax
call fcn.004d9c00
mov dword [ebp - 0x34], 4
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x34]
push 0x56ff8c
push eax
call fcn.004d9c00
mov dword [ebp - 0x34], 4
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x34]
push 0x56ffac
push eax
call fcn.004d9c00
mov dword [ebp - 0x34], 4
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x34]
push 0x56ff6c
push eax
call fcn.004d9c00
nop word cs:[eax + eax]
nop dword [eax]
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f099c