Function at 0x4044b5
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x4ee224
mov dword [esp + 0x24], esi
call fcn.00482280
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
add esi, 4
push eax
call ebx
mov ecx, dword [esi]
push 0xfffffffffffffff0
push ecx
mov edi, eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test edi, edi
mov ebp, eax
jne 0x404505
test ebp, 0x40000000
je 0x4044f8
mov edx, dword [esi]
push edx
call ebx
jmp 0x404503
mov eax, dword [esi]
push 4
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
mov edx, dword [esi]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
test ebp, 0x40000000
jne 0x40457d
test edi, edi
je 0x404538
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x404536
test eax, 0x20000000
je 0x404538
xor edi, edi
lea eax, [esp + 0x40]
push 0
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test edi, edi
jne 0x40456f
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
jmp 0x4045a9
lea edx, [esp + 0x30]
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x4045a9
mov eax, dword [esi]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x40]
mov ebx, eax
push ecx
push ebx
call ebp
lea edx, [esp + 0x30]
push edx
push edi
call ebp
lea eax, [esp + 0x30]
push 2
push eax
push ebx
push edi
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ebp, dword [esp + 0x5c]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0x50]
sub ebp, edx
mov edx, dword [esp + 0x30]
sub ebx, edi
lea eax, [ecx + edx]
cdq
sub eax, edx
mov ecx, eax
mov eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
sar ecx, 1
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x3c]
add eax, edx
cdq
sub eax, edx
mov edi, eax
mov eax, ebp
cdq
sub eax, edx
sar edi, 1
sar eax, 1
sub edi, eax
mov eax, dword [esp + 0x40]
cmp ecx, eax
jl 0x404607
mov eax, dword [esp + 0x48]
lea edx, [ecx + ebx]
cmp edx, eax
jle 0x404609
sub eax, ebx
mov ecx, eax
mov eax, dword [esp + 0x44]
cmp edi, eax
jl 0x40461e
mov eax, dword [esp + 0x4c]
lea edx, [edi + ebp]
cmp edx, eax
jle 0x404620
sub eax, ebp
mov edi, eax
mov eax, dword [esi]
push 0x15
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
xor edi, edi
push ecx
push edi
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x24]
mov edx, dword [esi]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e8
push edx
mov dword [ecx + 0x1c], edi
call ebx
mov ecx, dword [0x4dcab0]
mov dword [esp + 0x28], eax
mov eax, dword [0x4d9540]
push ecx
push ecx
mov dword [esp + 0x18], eax
mov ecx, esp
push 0x4d97c4
call fcn.004014f0
mov ecx, 0x4ee224
call fcn.00481590
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push str.m_lang_id
push 0x4d9844
mov dword [0x4dcab0], eax
call fcn.00480e80
add esp, 0x14
mov ecx, 0x4edfc8
mov dword [0x4dcab0], eax
mov dword [0x4e3cb4], edi
push edi
push 0x4d983c
call fcn.00401a30
test eax, eax
jge 0x4046ed
push edi
push str._silent
mov ecx, 0x4edfc8
call fcn.00401a30
test eax, eax
jge 0x4046ed
push edi
push 0x4d9824
mov ecx, 0x4edfc8
call fcn.00401a30
test eax, eax
jge 0x4046ed
push edi
push str._SILENT
mov ecx, 0x4edfc8
call fcn.00401a30
test eax, eax
jl 0x4046f7
mov dword [0x4e3cb4], 1
lea edx, [esp + 0x2c]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00402f50
add esp, 8
lea ecx, [esp + 0x10]
call fcn.00401380
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x10]
push 0x138d
mov dword [edx - 8], eax
mov ecx, dword [esp + 0x14]
mov word [ecx + eax*2], di
mov edx, dword [esi]
push edx
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 1
push 0xf1
push eax
call ebp
mov eax, dword [0x4d9540]
mov ecx, 0x4d9808
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x404793
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
je 0x404793
push edi
lea ecx, [esp + 0x18]
call fcn.004012f0
test eax, eax
je 0x404793
mov edx, dword [esp + 0x14]
inc edi
push edi
push 0x4d9808
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [0x4d9540]
mov dword [esp + 0x18], eax
mov eax, dword [0x4ecd48]
push eax
mov ecx, dword [eax - 8]
mov eax, dword [esp + 0x18]
push ecx
push eax
mov edx, dword [eax - 8]
lea ecx, [esp + 0x24]
push edx
call fcn.004017b0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
call fcn.00401200
lea ecx, [esp + 0x18]
call fcn.004014c0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push ecx
push edx
call edi
mov eax, dword [esp + 0x1c]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40480e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40480e
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40483d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40483d
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [0x4e3ca0]
push ecx
mov ecx, esp
mov edx, dword [eax - 0xc]
test edx, edx
jl 0x40485a
mov dword [ecx], eax
sub eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x40486d
mov edx, dword [0x4d9540]
mov dword [ecx], edx
mov eax, dword [0x4e3ca0]
push eax
call fcn.004016e0
call fcn.0048c0e0
add esp, 4
cmp eax, 1
jne 0x4049d1
mov ecx, dword [0x4e3ca0]
mov edx, dword [esp + 0x28]
push ecx
push edx
call edi
mov eax, dword [esi]
push 0x3fa
push eax
call ebx
push eax
call fcn.0040c920
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, dword [0x4edfe8]
add esp, 4
push 0
push 0xc
call edi
push eax
push 0xb
call edi
push eax
push 1
push 0x81
push ebx
mov ebx, dword [sym.imp.USER32.dll_LoadImageW]
call ebx
mov ecx, dword [esi]
push eax
push 1
push 0x80
push ecx
call ebp
mov ebp, dword [0x4edfe8]
push 0
push 0x32
call edi
push eax
push 0x31
call edi
push eax
push 1
push 0x81
push ebp
call ebx
push 0
push eax
mov ecx, esi
call fcn.0040d6e0
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebp, eax
test ebp, ebp
je 0x404997
push 0
push 0xc
call edi
push eax
push 0xb
call edi
push eax
push 1
push 0xf0
push ebp
call ebx
push 1
push eax
mov ecx, esi
mov dword [esp + 0x30], eax
call fcn.0040d6e0
push 0
push 0x32
call edi
push eax
push 0x31
call edi
push eax
push 1
push 0xf0
push ebp
call ebx
push 0
push eax
mov ecx, esi
call fcn.0040d6e0
mov edx, dword [esi]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x22b
push edx
call ebx
push 2
push 0x20
push 0x20
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, dword [esp + 0x28]
test edi, edi
je 0x404997
mov eax, dword [esi]
push 0x22b
push eax
call ebx
push edi
push 1
push 0x172
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x24]
call fcn.004043a0
mov eax, dword [0x4e3cb4]
test eax, eax
je 0x4049b9
push 0
push 1
push 0x111
mov ecx, esi
call fcn.0040d6c0
lea ecx, [esp + 0x10]
call fcn.004014c0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10
mov ecx, dword [0x4d9540]
mov edx, 0x4d9804
test edx, edx
mov dword [esp + 0x14], ecx
je 0x404a1e
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
je 0x404a1e
push edi
lea ecx, [esp + 0x18]
call fcn.004012f0
test eax, eax
je 0x404a1e
mov eax, dword [esp + 0x14]
inc edi
push edi
push 0x4d9804
push eax
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00401970
lea ecx, [esp + 0x28]
push 0x42
push ecx
call fcn.0048eb30
mov edx, dword [0x4d9540]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax]
add esp, 8
mov dword [esp + 0x1c], edx
mov edx, dword [eax - 8]
push ecx
mov ecx, dword [ecx - 8]
push ecx
push eax
push edx
lea ecx, [esp + 0x2c]
call fcn.004017b0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
push eax
call fcn.00401200
lea ecx, [esp + 0x1c]
call fcn.004014c0
mov ecx, dword [0x4d9540]
mov eax, dword [0x4e3ca0]
mov dword [esp + 0x18], ecx
push eax
mov edx, dword [eax - 8]
mov eax, dword [esp + 0x28]
push edx
push eax
mov eax, dword [eax - 8]
lea ecx, [esp + 0x24]
push eax
call fcn.004017b0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401200
lea ecx, [esp + 0x18]
call fcn.004014c0
mov edx, dword [esp + 0x20]
mov eax, dword [esi]
push 0x21
push str.INI_ERROR_1_
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x20]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x404aec
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x404af2
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
jmp 0x404af2
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x24]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x404b1d
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x404b1d
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x28]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x404b48
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x404b48
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x404b73
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x404b73
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esi]
push 1
push eax
call dword [sym.imp.USER32.dll_EndDialog]
push 1
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [esp + 0x10]
call fcn.004014c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret 0x10