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

Disassembly:
sub esp, 0x1c
mov dword [esp + 0x18], edx
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
push ebp
xor edi, edi
push 0x45af50
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
push 0x45b5b8
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x45b5b8
call dword [sym.imp.USER32.dll_CharUpperA]
and dword [esp + 0x38], 3
mov eax, dword [esp + 0x38]
cmp eax, 3
ja case.default.0x4265c1
jmp dword [eax*4 + 0x426a84]
mov dword [esp + 0x10], 0x20000000
jmp case.default.0x4265c1
mov dword [esp + 0x10], 0x20000000
jmp case.default.0x4265c1
mov dword [esp + 0x10], 0x10000000
mov ebp, dword [esp + 0x30]
mov eax, ebp
and eax, 0x40000000
mov dword [esp + 0x20], eax
cmp eax, 0x40000000
jne 0x42660a
mov dword [esp + 0x38], 0
mov dword [esp + 0x10], 0x10000000
mov eax, ebp
push 0
or eax, 0x80000000
push 0x10000000
mov ecx, dword [esp + 0x3c]
push 3
mov dword [esp + 0x28], eax
push 0
push ecx
push eax
push 0x45b5b8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, eax
jne 0x426642
mov ebx, 0xfffffffd
jmp 0x426885
cmp dword [esp + 0x10], 0x20000000
jne 0x42666e
mov ecx, 0x45b5b8
call fcn.00426b00
mov dword [esp + 0x18], eax
test eax, eax
jne 0x42666e
mov dword [esp + 0x38], 0
mov dword [esp + 0x10], 0x10000000
mov ecx, 0x38
call fcn.004263a0
mov edi, eax
test edi, edi
jne 0x426688
mov ebx, 0xffffffff
jmp 0x426885
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
push 0x45b5b8
mov dword [edi + 0x24], ebp
mov dword [edi + 0x28], 0
mov dword [edi + 8], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [eax + 1]
call fcn.004263a0
mov dword [edi + 0xc], eax
test eax, eax
jne 0x4266cb
mov ebx, 0xffffffff
jmp 0x426885
push 0x45b5b8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x14]
push 0
push eax
push 0x100
push 0x45bce0
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4266fd
mov ebx, 0xfffffff9
jmp 0x426885
push 0x446e80
push 0x45bce0
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x42671b
mov ebx, 0xfffffff2
jmp 0x426885
cmp dword [0x45bce4], 0xc8
je 0x426731
mov ebx, 0xfffffff1
jmp 0x426885
mov eax, dword [0x45bce8]
xor edx, edx
mov ebp, 0x45bce0
mov ecx, 0x100
mov dword [esp + 0x24], eax
mov dword [0x45bce8], edx
xor eax, eax
mov al, byte [ebp]
inc ebp
add edx, eax
dec ecx
jne 0x42674c
cmp dword [esp + 0x24], edx
je 0x426767
mov ebx, 0xfffffff0
jmp 0x426885
xor eax, eax
mov ax, word [0x45bd00]
mov dword [edi + 0x20], eax
mov ecx, dword [0x45bcec]
mov dword [edi + 0x14], ecx
mov ebp, dword [0x45bcec]
mov dword [edi + 0x1c], 0
shl ebp, 5
mov ecx, ebp
call fcn.00426380
mov dword [edi + 0x18], eax
test eax, eax
jne 0x4267a3
mov ebx, 0xffffffff
jmp 0x426885
push 0
mov eax, dword [0x45bcf0]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4267c3
mov ebx, 0xfffffff9
jmp 0x426885
lea eax, [esp + 0x14]
push 0
push eax
mov ecx, dword [edi + 0x18]
push ebp
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4267e4
mov ebx, 0xfffffff9
jmp 0x426885
mov ecx, dword [edi + 0x18]
xor eax, eax
mov edx, ecx
cmp dword [0x45bcec], eax
jbe 0x426811
xor ebp, ebp
cmp word [edx + 0x14], bp
je 0x4267ff
or dword [ecx + 0x18], 1
mov dword [ecx + 0x14], ebp
add ecx, 0x20
inc eax
mov dword [ecx - 4], ebp
cmp eax, dword [0x45bcec]
jb 0x4267f5
mov ebp, dword [0x45bcfc]
shr ebp, 0xf
test dword [0x45bcfc], 0x7fff
je 0x426827
inc ebp
lea ebp, [ebp*4 + 4]
mov ecx, ebp
call fcn.00426380
mov dword [edi + 0x1c], eax
test eax, eax
jne 0x426843
mov ebx, 0xffffffff
jmp 0x426885
push 0
mov eax, dword [0x45bcf4]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x426860
mov ebx, 0xfffffff9
jmp 0x426885
lea eax, [esp + 0x14]
push 0
push eax
mov ecx, dword [edi + 0x1c]
push ebp
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42687e
mov ebx, 0xfffffff9
jmp 0x426885
mov dword [edi + 4], 0
test ebx, ebx
jne 0x4268d1
cmp dword [esp + 0x10], 0x20000000
jne 0x4268d1
mov eax, dword [esp + 0x18]
push esi
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x34], eax
call ebp
mov ecx, dword [esp + 0x10]
push 0
mov eax, dword [esp + 0x38]
push ecx
mov edx, dword [esp + 0x24]
push 3
push 0
push eax
push edx
push 0x45b5b8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, eax
jne 0x4268d7
mov ebx, 0xfffffffd
jmp 0x4268d7
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x426930
cmp esi, 0xffffffff
je 0x4268e3
push esi
call ebp
test edi, edi
je 0x426912
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x4268f3
call fcn.004264c0
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x4268ff
call fcn.004264c0
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x42690b
call fcn.004263c0
mov ecx, edi
call fcn.004263c0
mov ecx, ebx
call fcn.00426570
push 0x45af50
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0xc
mov eax, dword [esp + 0x28]
push eax
push 0x45b5b8
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x45b5b8
call dword [sym.imp.USER32.dll_CharUpperA]
push 0x45b5b8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x426978
mov cl, byte [eax + 0x45b5b7]
cmp cl, 0x5c
je 0x426978
cmp cl, 0x3a
je 0x426978
mov byte [eax + 0x45b5b8], 0x5c
mov byte [eax + 0x45b5b9], 0
push 0x45b5b8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [edi + 0x20]
add ecx, eax
cmp ecx, 0x104
jle 0x426997
mov ebx, 0xffffffef
jmp 0x4269ca
lea ecx, [eax + 1]
call fcn.004263a0
mov dword [edi + 8], eax
test eax, eax
jne 0x4269ad
mov ebx, 0xffffffff
jmp 0x4269ca
push 0x45b5b8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [edi + 0x10], esi
mov eax, dword [0x446e60]
mov dword [edi + 4], eax
mov dword [0x446e60], edi
test ebx, ebx
je 0x4269ff
cmp esi, 0xffffffff
je 0x4269d6
push esi
call ebp
test edi, edi
je 0x4269e1
mov ecx, edi
call fcn.00426aa0
mov ecx, ebx
call fcn.00426570
push 0x45af50
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0xc
cmp dword [esp + 0x38], 3
jne 0x426a5d
cmp dword [esp + 0x20], 0x40000000
je 0x426a1c
mov eax, 2
mov esi, 4
jmp 0x426a26
mov eax, 4
mov esi, 2
push 0
push 0
push 0
push eax
push 0
mov eax, dword [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [edi + 0x2c], eax
test eax, eax
je 0x426a64
push 0
push 0
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0x30], eax
test eax, eax
jne 0x426a5d
mov eax, dword [edi + 0x2c]
push eax
call ebp
jmp 0x426a64
mov eax, dword [esp + 0x38]
mov dword [edi + 0x28], eax
push 0x45af50
mov dword [edi], 0x38
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0xc