Function at 0x408285
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x55e54c
mov dword [esp + 0x24], esi
call fcn.0048f1c0
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 0x4082d5
test ebp, 0x40000000
je 0x4082c8
mov edx, dword [esi]
push edx
call ebx
jmp 0x4082d3
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 0x40834d
test edi, edi
je 0x408308
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x408306
test eax, 0x20000000
je 0x408308
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 0x40833f
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 0x408379
lea edx, [esp + 0x30]
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x408379
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 0x4083d7
mov eax, dword [esp + 0x48]
lea edx, [ecx + ebx]
cmp edx, eax
jle 0x4083d9
sub eax, ebx
mov ecx, eax
mov eax, dword [esp + 0x44]
cmp edi, eax
jl 0x4083ee
mov eax, dword [esp + 0x4c]
lea edx, [edi + ebp]
cmp edx, eax
jle 0x4083f0
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 [0x54a30c]
mov dword [esp + 0x28], eax
mov eax, dword [0x546560]
push ecx
push ecx
mov dword [esp + 0x18], eax
mov ecx, esp
push 0x546a6c
call fcn.00405730
mov ecx, 0x55e54c
call fcn.0048e4d0
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push str.m_lang_id
push 0x546aec
mov dword [0x54a30c], eax
call fcn.0048dbb0
add esp, 0x14
mov ecx, 0x55e2e0
mov dword [0x54a30c], eax
mov dword [0x554034], edi
push edi
push 0x546ae4
call fcn.00405c70
test eax, eax
jge 0x4084bd
push edi
push str._silent
mov ecx, 0x55e2e0
call fcn.00405c70
test eax, eax
jge 0x4084bd
push edi
push 0x546acc
mov ecx, 0x55e2e0
call fcn.00405c70
test eax, eax
jge 0x4084bd
push edi
push str._SILENT
mov ecx, 0x55e2e0
call fcn.00405c70
test eax, eax
jl 0x4084c7
mov dword [0x554034], 1
lea edx, [esp + 0x2c]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00407100
add esp, 8
lea ecx, [esp + 0x10]
call fcn.004055c0
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 [0x546560]
mov ecx, 0x546ab0
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x408563
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
je 0x408563
push edi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x408563
mov edx, dword [esp + 0x14]
inc edi
push edi
push 0x546ab0
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x546560]
mov dword [esp + 0x18], eax
mov eax, dword [0x55d048]
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.004059f0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
call fcn.00405440
lea ecx, [esp + 0x18]
call fcn.00405700
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4085de
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4085de
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40860d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40860d
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [0x554020]
push ecx
mov ecx, esp
mov edx, dword [eax - 0xc]
test edx, edx
jl 0x40862a
mov dword [ecx], eax
sub eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x40863d
mov edx, dword [0x546560]
mov dword [ecx], edx
mov eax, dword [0x554020]
push eax
call fcn.00405920
call fcn.004b9470
add esp, 4
cmp eax, 1
jne 0x4087a1
mov ecx, dword [0x554020]
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.00410620
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, dword [0x55e300]
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 [0x55e300]
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.004113e0
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebp, eax
test ebp, ebp
je 0x408767
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.004113e0
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.004113e0
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 0x408767
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.00408170
mov eax, dword [0x554034]
test eax, eax
je 0x408789
push 0
push 1
push 0x111
mov ecx, esi
call fcn.004113c0
lea ecx, [esp + 0x10]
call fcn.00405700
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10
mov ecx, dword [0x546560]
mov edx, 0x546aac
test edx, edx
mov dword [esp + 0x14], ecx
je 0x4087ee
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
je 0x4087ee
push edi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x4087ee
mov eax, dword [esp + 0x14]
inc edi
push edi
push 0x546aac
push eax
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00405bb0
lea ecx, [esp + 0x28]
push 0x42
push ecx
call fcn.004bc8d0
mov edx, dword [0x546560]
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.004059f0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
push eax
call fcn.00405440
lea ecx, [esp + 0x1c]
call fcn.00405700
mov ecx, dword [0x546560]
mov eax, dword [0x554020]
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.004059f0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
call fcn.00405440
lea ecx, [esp + 0x18]
call fcn.00405700
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4088bc
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4088c2
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
jmp 0x4088c2
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x24]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4088ed
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4088ed
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x28]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x408918
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x408918
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x408943
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x408943
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
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.00405700
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret 0x10