Function at 0x408205
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x55f604
mov dword [esp + 0x24], esi
call fcn.00490110
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 0x408255
test ebp, 0x40000000
je 0x408248
mov edx, dword [esi]
push edx
call ebx
jmp 0x408253
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 0x4082cd
test edi, edi
je 0x408288
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x408286
test eax, 0x20000000
je 0x408288
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 0x4082bf
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 0x4082f9
lea edx, [esp + 0x30]
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x4082f9
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 0x408357
mov eax, dword [esp + 0x48]
lea edx, [ecx + ebx]
cmp edx, eax
jle 0x408359
sub eax, ebx
mov ecx, eax
mov eax, dword [esp + 0x44]
cmp edi, eax
jl 0x40836e
mov eax, dword [esp + 0x4c]
lea edx, [edi + ebp]
cmp edx, eax
jle 0x408370
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 [0x54b354]
mov dword [esp + 0x28], eax
mov eax, dword [0x547570]
push ecx
push ecx
mov dword [esp + 0x18], eax
mov ecx, esp
push 0x547a7c
call fcn.00405730
mov ecx, 0x55f604
call fcn.0048f420
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push str.m_lang_id
push 0x547afc
mov dword [0x54b354], eax
call fcn.0048eb00
add esp, 0x14
mov ecx, 0x55f398
mov dword [0x54b354], eax
mov dword [0x5550a4], edi
push edi
push 0x547af4
call fcn.00405c70
test eax, eax
jge 0x40843d
push edi
push str._silent
mov ecx, 0x55f398
call fcn.00405c70
test eax, eax
jge 0x40843d
push edi
push 0x547adc
mov ecx, 0x55f398
call fcn.00405c70
test eax, eax
jge 0x40843d
push edi
push str._SILENT
mov ecx, 0x55f398
call fcn.00405c70
test eax, eax
jl 0x408447
mov dword [0x5550a4], 1
lea edx, [esp + 0x2c]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00407080
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 [0x547570]
mov ecx, 0x547ac0
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x4084e3
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
je 0x4084e3
push edi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x4084e3
mov edx, dword [esp + 0x14]
inc edi
push edi
push 0x547ac0
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x547570]
mov dword [esp + 0x18], eax
mov eax, dword [0x55e100]
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 [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40855e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40855e
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40858d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40858d
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [0x555090]
push ecx
mov ecx, esp
mov edx, dword [eax - 0xc]
test edx, edx
jl 0x4085aa
mov dword [ecx], eax
sub eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4085bd
mov edx, dword [0x547570]
mov dword [ecx], edx
mov eax, dword [0x555090]
push eax
call fcn.00405920
call fcn.004ba530
add esp, 4
cmp eax, 1
jne 0x408721
mov ecx, dword [0x555090]
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.00410470
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, dword [0x55f3b8]
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 [0x55f3b8]
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.00411230
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebp, eax
test ebp, ebp
je 0x4086e7
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.00411230
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.00411230
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 0x4086e7
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.004080f0
mov eax, dword [0x5550a4]
test eax, eax
je 0x408709
push 0
push 1
push 0x111
mov ecx, esi
call fcn.00411210
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 [0x547570]
mov edx, 0x547abc
test edx, edx
mov dword [esp + 0x14], ecx
je 0x40876e
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
je 0x40876e
push edi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x40876e
mov eax, dword [esp + 0x14]
inc edi
push edi
push 0x547abc
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.004bd990
mov edx, dword [0x547570]
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 [0x547570]
mov eax, dword [0x555090]
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 [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40883c
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x408842
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
jmp 0x408842
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x24]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40886d
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x40886d
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x28]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x408898
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x408898
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4088c3
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4088c3
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00532222
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