Function at 0x489f22
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
push ebx
push esi
mov ebx, ecx
push edi
push ebx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x28], ebx
call fcn.004462b2
lea eax, [ebp + 8]
push eax
call fcn.0043dae7
xor edi, edi
cmp dword [ebp + 0xc], edi
pop ecx
jne 0x489f6a
push edi
push ebx
call fcn.00412371
mov eax, dword [ebx + 0x28]
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
jne 0x489f6a
mov edi, 0x80070057
jmp 0x48a444
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
push 0x2c
lea eax, [ebp - 0x14]
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
call fcn.004a7e7b
mov esi, dword [ebp - 0x14]
mov ax, word [esi]
mov word [ebp - 0x24], ax
push 4
lea eax, [ebp + 8]
push eax
push 0x4c1aec
mov word [esi], di
call fcn.00445f31
add esp, 0x10
test al, al
je 0x489fd9
push 0x4c813c
lea ecx, [ebp + 0xc]
call fcn.0044cd74
push dword [ebp + 8]
lea ecx, [ebp + 0xc]
call fcn.00443fc7
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.00422e2f
mov edi, eax
lea ecx, [ebp + 0xc]
jmp 0x48a43f
push 5
lea eax, [ebp + 8]
push eax
push 0x4c5560
call fcn.00445f31
movzx eax, al
add esp, 0xc
mov dword [ebp - 0x60], eax
mov ebx, 0x80000000
jmp 0x48a15a
push 7
push edi
push 0x4c5bac
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x48a01c
mov dword [ebp - 0x10], 0x40000000
jmp 0x48a150
push 6
push edi
push 0x4c5ba4
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x48a03c
mov dword [ebp - 0x10], 0x20000000
jmp 0x48a150
push 5
push edi
push 0x4c73b8
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x48a058
mov dword [ebp - 0x10], ebx
jmp 0x48a150
push 8
push edi
push 0x4c8130
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x48a075
or byte [ebp - 7], 1
jmp 0x48a150
push 5
push edi
push 0x4c8128
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x48a092
or byte [ebp - 7], 2
jmp 0x48a150
push 7
push edi
push 0x4c5900
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x48a0af
or byte [ebp - 7], 4
jmp 0x48a150
push 4
push edi
push 0x4c8120
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x48a0cc
or byte [ebp - 7], 8
jmp 0x48a150
push 9
push edi
push 0x4c8114
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x48a0e9
or dword [ebp - 4], 0x100011
jmp 0x48a150
push 8
push edi
push 0x4c8108
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x48a106
or dword [ebp - 4], 0x100001
jmp 0x48a150
push 7
push edi
push 0x4c8100
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x48a123
or dword [ebp - 4], 0x100002
jmp 0x48a150
push 5
push edi
push 0x4c80f8
call fcn.0043eeea
add esp, 0xc
test al, al
je 0x48a150
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 8]
add edi, 0xa
push eax
mov dword [ebp + 8], edi
call fcn.00450152
or byte [ebp - 2], 0x10
pop ecx
pop ecx
lea eax, [ebp + 8]
push eax
call fcn.00408ddd
pop ecx
mov edi, dword [ebp + 8]
cmp word [edi], 0x2d
je 0x489ffc
mov ax, word [ebp - 0x24]
mov word [esi], ax
mov eax, dword [ebp - 0x10]
or dword [ebp - 8], eax
mov esi, 0x4bca0c
push esi
lea ecx, [ebp - 0x18]
call fcn.0044cd74
push esi
lea ecx, [ebp - 0x10]
call fcn.0044cd74
push esi
lea ecx, [ebp - 0x14]
call fcn.0044cd74
push esi
lea ecx, [ebp - 0x20]
call fcn.0044cd74
mov eax, dword [ebp + 8]
xor edi, edi
cmp word [eax], 0x2a
push 2
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x2c], edi
mov byte [ebp - 9], 0
pop ebx
jne 0x48a1d5
add dword [ebp + 8], ebx
lea eax, [ebp + 8]
push eax
mov byte [ebp - 9], 1
call fcn.0043dae7
pop ecx
push 0x2c
pop esi
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00446d58
mov ecx, dword [ebp - 0x28]
add esp, 0xc
push 1
lea eax, [ebp - 0x18]
push eax
call fcn.00402eb0
mov eax, dword [ebp + 8]
cmp word [eax], si
je 0x48a207
xor edi, edi
inc edi
jmp 0x48a424
add dword [ebp + 8], ebx
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x54]
call fcn.00456f8f
push eax
call fcn.004500a2
mov eax, dword [ebp + 8]
add esp, 0x14
cmp word [eax], si
jne 0x48a25a
add dword [ebp + 8], ebx
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x54]
call fcn.00456f8f
push edi
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.00446d58
add esp, 0xc
push dword [ebp - 0x10]
call fcn.00412ae5
cmp dword [ebp - 0x60], edi
pop ecx
mov dword [ebp - 0x1c], eax
je 0x48a2cc
push edi
push dword [ebp - 0x10]
call fcn.00415371
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
mov dword [ebp - 4], edi
mov dword [ebp + 0xc], edi
je 0x48a29a
lea eax, [ebp - 4]
push eax
push esi
call dword [0x4d7efc]
lea eax, [ebp + 0xc]
push eax
push esi
call dword [0x4d7f00]
jmp 0x48a2a9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, edi
jne 0x48a2a7
xor eax, eax
inc eax
mov edi, eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xe8]
push dword [ebp - 4]
push 0x4c80ec
push eax
call dword [sym.imp.USER32.DLL_wsprintfW]
lea eax, [ebp - 0xe8]
jmp 0x48a415
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x48a338
add dword [ebp + 8], ebx
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00446e48
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x48a338
add dword [ebp + 8], ebx
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x54]
call fcn.00456f8f
push edi
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.00446d58
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x48a338
add dword [ebp + 8], ebx
push esi
lea eax, [ebp - 0x2c]
push eax
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x54]
call fcn.00456f8f
push eax
call fcn.00446fa5
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0043dae7
mov eax, dword [ebp + 8]
cmp word [eax], 0x23
pop ecx
je 0x48a360
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004404ef
pop ecx
pop ecx
lea eax, [ebp + 8]
push eax
call fcn.0043dae7
mov eax, dword [ebp + 8]
cmp word [eax], 0x23
pop ecx
jne 0x48a385
add dword [ebp + 8], ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004404ef
pop ecx
pop ecx
cmp dword [ebp - 4], edi
je 0x48a450
movzx eax, byte [ebp - 4]
cmp eax, 1
mov esi, 0x7fffffff
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp + 0xc], 0xe
jne 0x48a3b8
mov dword [ebp + 0xc], 3
jmp 0x48a3cb
cmp eax, ebx
jne 0x48a3c1
mov dword [ebp + 0xc], ebx
jmp 0x48a3cb
cmp eax, edi
jne 0x48a3cb
mov eax, dword [ebp - 0x5c]
mov dword [ebp + 0xc], eax
push ebx
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov ebx, eax
cmp ebx, edi
je 0x48a3f6
lea eax, [ebp - 0x3c]
push eax
push 0x44f7a5
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnumResourceNamesW]
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push dword [ebp - 0x30]
sub esi, dword [ebp - 0x38]
lea eax, [ebp - 0x188]
push esi
push 0x4c80ec
push eax
call dword [sym.imp.USER32.DLL_wsprintfW]
lea eax, [ebp - 0x188]
mov ecx, dword [ebp - 0x28]
add esp, 0x10
push eax
push dword [ebp - 0x18]
call fcn.00443666
lea ecx, [ebp - 0x20]
call fcn.0043db4f
lea ecx, [ebp - 0x14]
call fcn.0043db4f
lea ecx, [ebp - 0x10]
call fcn.0043db4f
lea ecx, [ebp - 0x18]
call fcn.0043db4f
lea ecx, [ebp - 0x54]
call fcn.0043db4f
mov eax, edi
jmp 0x48a4cc
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
call fcn.0044cd74
cmp byte [ebp - 9], 0
je 0x48a466
mov eax, dword [ebp - 0x28]
jmp 0x48a46f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x194]
push dword [ebp - 8]
lea ecx, [ebp - 0x34]
push dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x48]
lea ecx, [ebp - 0x18]
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00489240
lea ecx, [ebp - 0x1c]
call fcn.0043db4f
lea ecx, [ebp - 0x20]
call fcn.0043db4f
lea ecx, [ebp - 0x14]
call fcn.0043db4f
lea ecx, [ebp - 0x10]
call fcn.0043db4f
lea ecx, [ebp - 0x18]
call fcn.0043db4f
lea ecx, [ebp - 0x54]
call fcn.0043db4f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8