Function at 0x407520
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov ebx, eax
call sub.mfc90.dll_Ordinal_1137
mov ebp, dword [eax + 4]
xor edi, edi
cmp dword [ebx + 0x6c], 1
jne 0x407585
mov eax, dword [esp + 0x2c]
lea esi, [ebx + 0x30]
push esi
push eax
mov edi, 1
mov dword [ebx + 0x6c], 0
call dword [sym.imp.USER32.dll_GetWindowPlacement]
test eax, eax
je 0x407611
mov eax, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x60]
add edx, eax
mov dword [ebx + 0x54], edx
mov edx, dword [ebx + 0x68]
add edx, ecx
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x50], ecx
mov dword [ebx + 0x58], edx
test eax, eax
jne 0x407585
test ecx, ecx
jne 0x407585
call fcn.00407840
cmp dword [ebx + 0x70], 0
je 0x4075f7
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x7c]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
mov eax, dword [ebx + 0x4c]
push eax
push 0x410520
push ecx
call esi
mov edx, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x7c]
mov edi, eax
mov eax, dword [ebx + 0x78]
push eax
push edx
push 0x410524
push ecx
call esi
mov ebx, dword [esp + 0x2c]
mov esi, eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub edx, dword [esp + 0x18]
push 0
push ecx
push edx
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 8
mov eax, dword [ebx + 0x74]
sub eax, 0
je 0x40773a
sub eax, 1
je 0x40761d
sub eax, 1
je 0x407792
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
mov ecx, dword [ebx + 0x78]
cmp dword [ecx - 0xc], 0
je 0x407611
mov eax, dword [ebx + 0x7c]
cmp dword [eax - 0xc], 0
je 0x407611
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test edi, edi
je 0x407646
push ecx
push 0
push str.ResOption
push eax
call esi
mov dword [ebx], eax
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x7c]
push eax
mov eax, dword [ebx + 0x30]
push eax
push str.FrameLength
push ecx
call esi
mov edx, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x7c]
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x78]
push eax
push edx
push str.FrameFlags
push ecx
call esi
mov ecx, dword [ebx + 0x7c]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0x78]
push eax
mov eax, dword [ebx + 0x38]
push eax
push str.FrameShowCmd
push ecx
call esi
mov edx, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x78]
push eax
push edx
push str.FramePtMinX
push ecx
call esi
mov ecx, dword [ebx + 0x7c]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x78]
push eax
mov eax, dword [ebx + 0x40]
push eax
push str.FramePtMinY
push ecx
call esi
mov edx, dword [ebx + 0x44]
mov ecx, dword [ebx + 0x7c]
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x78]
push eax
push edx
push str.FramePtMaxX
push ecx
call esi
mov ecx, dword [ebx + 0x7c]
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x78]
push eax
mov eax, dword [ebx + 0x48]
push eax
push str.FramePtMaxY
push ecx
call esi
mov edx, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x7c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x78]
push eax
push edx
push str.FrameNormalTop
push ecx
call esi
mov ecx, dword [ebx + 0x7c]
mov dword [ebx + 0x24], eax
mov eax, dword [ebx + 0x78]
push eax
mov eax, dword [ebx + 0x58]
push eax
push str.FrameNormalBottom
push ecx
call esi
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x78]
mov edx, dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x7c]
push eax
push edx
push str.FrameNormalLeft
push ecx
call esi
mov ecx, dword [ebx + 0x7c]
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x78]
push eax
mov eax, dword [ebx + 0x54]
push eax
push str.FrameNormalRight
push ecx
call esi
mov dword [ebx + 0x28], eax
jmp 0x407792
test edi, edi
je 0x407753
push 0
push 0x40ef3c
push str.Position
mov ecx, ebp
call sub.mfc90.dll_Ordinal_3413
mov dword [ebx], eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push str.Position
mov ecx, ebp
call sub.mfc90.dll_Ordinal_3412
lea edi, [ebx + 4]
mov ecx, 0xb
test eax, eax
je 0x40778d
mov eax, dword [esp + 0x10]
mov esi, eax
push eax
rep movsd dword es:[edi], dword [esi]
call sub.mfc90.dll_Ordinal_266
add esp, 4
jmp 0x407792
lea esi, [ebx + 0x30]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 8]
lea ecx, [ebx + 0xc]
push edx
mov eax, ebx
call fcn.004077f0
cmp dword [ecx], 3
jne 0x4077cb
mov eax, dword [esp + 0x2c]
push 0
push 0xf030
push 0x112
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 8
mov ecx, dword [esp + 0x2c]
add ebx, 4
push ebx
push ecx
call dword [sym.imp.USER32.dll_SetWindowPlacement]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 8