Function at 0x433070
Capabilities:
Inspect section memory permissions
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
lea eax, [ebp - 0x114]
push 0x466810
push eax
mov dword [ebp - 4], 0
call fcn.00432ee0
add esp, 8
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
mov dword [ebp - 0x10], esi
jne 0x4330c2
mov ecx, 0x41
mov edx, dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x114]
rep stosd dword es:[edi], eax
push edx
jmp 0x433140
lea eax, [ebp - 0x114]
push 0x466800
push eax
call fcn.00432ee0
add esp, 8
lea ecx, [ebp - 0x114]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp - 0xc], eax
mov ecx, 0x41
je 0x4330b2
mov ebx, dword [ebp + 0x10]
push ebx
xor eax, eax
lea edi, [ebp - 0x114]
push 0x40
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x433129
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x85b888], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push edi
jne 0x433159
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x85b888], 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edx
call fcn.00432f10
mov edi, eax
add esp, 0xc
test edi, edi
mov dword [ebp + 0x10], edi
jne 0x433269
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edi, dword [ebp + 0x18]
xor eax, 0xff82ad82
and eax, 0xffffff
xor ecx, eax
test edi, edi
mov dword [esi], ecx
je 0x43321d
cmp ebx, 8
jbe 0x4331b6
test dword [edi + 0x24], 0x80000000
je 0x4331b6
lea ecx, [ebx - 8]
push ecx
lea edx, [esi + 8]
push edx
call fcn.004342e0
add esp, 8
mov eax, dword [0x85b890]
test eax, eax
je 0x43321d
test dword [edi + 0x24], 0x20000000
je 0x43321d
add esi, 8
sub ebx, 8
mov dword [ebp + 8], esi
mov dword [ebp + 0x10], ebx
mov eax, dword [0x85b890]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push eax
push dword [ebp + 0x10]
add eax, 0x10
push dword [ebp + 8]
call eax
pop dword [ebp + 8]
pop dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 8], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
sub esi, 8
add ebx, 8
test eax, eax
jne 0x43321d
mov dword [0x85b888], 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push ebx
push esi
push eax
call fcn.00432f10
mov edi, eax
add esp, 0xc
test edi, edi
mov dword [ebp + 0x10], edi
jne 0x433269
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov edi, dword [ebp + 0xc]
xor ecx, 0xff82ad82
and ecx, 0xffffff
xor edx, ecx
test edi, edi
mov dword [esi], edx
je 0x433265
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0xc]
jmp 0x4332d0
mov edi, esi
jmp 0x4332d0
mov ebx, dword [esi + 4]
push esi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4332d0
mov ecx, dword [0x85b890]
test ecx, ecx
je 0x4332d0
test dword [eax + 0x24], 0x40000000
je 0x4332d0
mov eax, dword [0x85b890]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push eax
push dword [ebp + 8]
push dword [ebp + 0x10]
call eax
pop dword [ebp + 0x10]
pop dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4332ca
mov dword [0x85b888], 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4332d9
mov dword [eax], ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret