Function at 0x404c70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41721c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c8
push ebx
push esi
push edi
call fcn.00404420
mov esi, dword [ebp + 8]
cmp esi, eax
jae 0x404e6e
push esi
call fcn.00404890
mov ebx, dword [ebp + 0xc]
add esp, 4
cmp ebx, eax
jae 0x404e6e
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x1c0]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov ecx, 0x41
lea edi, [esp + 0x2c8]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xb8]
push 0x104
push ecx
mov dword [esp + 0x30], eax
call fcn.00404370
add esp, 8
test al, al
je 0x404e6e
lea edi, [esp + 0xb8]
dec edi
jmp 0x404d20
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404d20
mov edx, dword [str.loading_ad_ad.ini]
mov eax, dword [0x4188e4]
mov ecx, dword [0x4188e8]
mov dword [edi], edx
mov edx, dword [0x4188ec]
mov dword [edi + 4], eax
mov ax, word [0x4188f0]
mov dword [edi + 8], ecx
mov cl, byte [0x4188f2]
push ebx
mov dword [edi + 0xc], edx
push str.file_d
lea edx, [esp + 0x14]
mov word [edi + 0x10], ax
push 0x1f
push edx
mov byte [edi + 0x12], cl
call fcn.0040cd4b
lea eax, [esp + 0x74]
push esi
push eax
call fcn.0040ac50
push eax
lea ecx, [esp + 0x64]
push str.FlashGroup
xor edi, edi
push ecx
mov dword [esp + 0x400], edi
call fcn.00401ad0
mov ecx, dword [eax + 0x18]
mov esi, 0x10
add esp, 0x24
cmp ecx, esi
jb 0x404da7
mov eax, dword [eax + 4]
jmp 0x404daa
add eax, 4
lea edx, [esp + 0xb8]
push edx
push 0x104
lea ecx, [esp + 0x2d0]
push ecx
push edi
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, eax
mov eax, dword [esp + 0x60]
neg ebx
sbb bl, bl
inc bl
cmp eax, esi
jb 0x404de9
mov eax, dword [esp + 0x4c]
push eax
call fcn.0040c868
add esp, 4
cmp dword [esp + 0x7c], esi
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], edi
mov byte [esp + 0x4c], 0
mov dword [esp + 0x3dc], 0xffffffff
jb 0x404e18
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0040c868
add esp, 4
test bl, bl
jne 0x404e6e
lea edx, [esp + 0xb8]
push 0x104
push edx
call fcn.00404370
lea eax, [esp + 0x2d0]
push eax
lea ecx, [esp + 0xc4]
push ecx
push str._sloading_ad_s
lea edx, [esp + 0x1d4]
push 0x103
push edx
call fcn.0040cd4b
lea eax, [esp + 0x1dc]
push 0x418950
push eax
call fcn.0040ce22
add esp, 0x24
cmp eax, edi
jne 0x404e85
xor al, al
mov ecx, dword [esp + 0x3d4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call fcn.0040cda2
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], edi
mov byte [esp + 0x34], 0
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x3e4], 1
call fcn.00404650
mov esi, dword [ebp + 0x10]
add esp, 8
lea edx, [esp + 0x1c0]
push edx
mov ecx, esi
call fcn.00404620
push str._ver
lea eax, [esp + 0x84]
push esi
push eax
call fcn.00401b80
lea ecx, [esp + 0x38]
push ecx
push eax
lea edx, [esp + 0xb0]
push edx
mov byte [esp + 0x3f4], 2
call fcn.00401c30
add esp, 0x18
push 0xffffffffffffffff
push edi
push eax
mov ecx, esi
mov byte [esp + 0x3e8], 3
call fcn.00401880
lea ecx, [esp + 0x9c]
call fcn.00401650
lea ecx, [esp + 0x80]
call fcn.00401650
lea ecx, [esp + 0x2c]
call fcn.00401650
mov ecx, dword [esp + 0x3d4]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret