Function at 0x404f50
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x417246
push eax
mov dword fs:[0], esp
sub esp, 0x1d8
push ebx
push esi
call fcn.00404420
mov esi, dword [esp + 0x1f0]
cmp esi, eax
jae 0x404f91
push esi
call fcn.00404890
mov ebx, dword [esp + 0x1f8]
add esp, 4
cmp ebx, eax
jb 0x404faa
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1d8]
mov dword fs:[0], ecx
add esp, 0x1e4
ret
push ebp
push edi
mov ebp, 0x10
xor eax, eax
mov ecx, ebp
lea edi, [esp + 0xa4]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xe4]
push 0x104
push eax
call fcn.00404370
add esp, 8
test al, al
je 0x4051da
lea edi, [esp + 0xe4]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404fe3
mov ecx, dword [str.loading_ad_ad.ini]
mov edx, dword [0x4188e4]
mov eax, dword [0x4188e8]
mov dword [edi], ecx
mov ecx, dword [0x4188ec]
mov dword [edi + 4], edx
mov dx, word [0x4188f0]
mov dword [edi + 8], eax
mov al, byte [0x4188f2]
push ebx
mov dword [edi + 0xc], ecx
push str.width_u
lea ecx, [esp + 0x54]
mov word [edi + 0x10], dx
push 0x1f
push ecx
mov byte [edi + 0x12], al
call fcn.0040cd4b
lea edx, [esp + 0x7c]
push esi
push edx
call fcn.0040ac50
push eax
lea eax, [esp + 0x30]
push str.FlashGroup
xor edi, edi
push eax
mov dword [esp + 0x214], edi
call fcn.00401ad0
mov ecx, dword [eax + 0x18]
add esp, 0x24
cmp ecx, ebp
jb 0x405065
mov eax, dword [eax + 4]
jmp 0x405068
add eax, 4
lea ecx, [esp + 0xe4]
push ecx
push 0x40
lea edx, [esp + 0xac]
push edx
push edi
lea ecx, [esp + 0x5c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov eax, dword [esp + 0x2c]
setne byte [esp + 0x13]
cmp eax, ebp
jb 0x4050a3
mov edx, dword [esp + 0x18]
push edx
call fcn.0040c868
add esp, 4
cmp dword [esp + 0x84], ebp
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], edi
mov byte [esp + 0x18], 0
mov dword [esp + 0x1f0], 0xffffffff
jb 0x4050d5
mov eax, dword [esp + 0x70]
push eax
call fcn.0040c868
add esp, 4
mov al, byte [esp + 0x13]
test al, al
je 0x4051da
lea ecx, [esp + 0xa4]
push ecx
call fcn.0040cd46
mov edx, dword [esp + 0x204]
mov dword [edx], eax
push ebx
xor eax, eax
mov ecx, ebp
lea edi, [esp + 0xac]
push str.height_u
rep stosd dword es:[edi], eax
lea eax, [esp + 0x58]
push 0x1f
push eax
call fcn.0040cd4b
lea ecx, [esp + 0x9c]
push esi
push ecx
call fcn.0040ac50
push eax
lea edx, [esp + 0x50]
push str.FlashGroup
push edx
mov dword [esp + 0x218], 1
call fcn.00401ad0
mov ecx, dword [eax + 0x18]
add esp, 0x28
cmp ecx, ebp
jb 0x40514e
mov eax, dword [eax + 4]
jmp 0x405151
add eax, 4
lea ecx, [esp + 0xe4]
push ecx
push 0x40
lea edx, [esp + 0xac]
push edx
push 0
lea ecx, [esp + 0x5c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov eax, dword [esp + 0x48]
setne bl
cmp eax, ebp
jb 0x40518b
mov edx, dword [esp + 0x34]
push edx
call fcn.0040c868
add esp, 4
cmp dword [esp + 0xa0], ebp
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
jb 0x4051b9
mov eax, dword [esp + 0x8c]
push eax
call fcn.0040c868
add esp, 4
test bl, bl
je 0x4051da
lea ecx, [esp + 0xa4]
push ecx
call fcn.0040cd46
mov edx, dword [esp + 0x208]
mov dword [edx], eax
add esp, 4
mov al, 1
jmp 0x4051dc
xor al, al
mov ecx, dword [esp + 0x1e8]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1e4
ret