Function at 0x427670
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x4c
push ebp
mov ebp, dword [esp + 0x54]
push esi
mov esi, ecx
push eax
push ebp
mov dword [esi + 0x6028], 0
call fcn.004275b0
test eax, eax
jne 0x42769c
pop esi
pop ebp
add esp, 0x4c
ret 8
mov cl, byte [esi + 0x121]
mov dx, word [esi + 0x122]
push ebx
mov bl, byte [esi + 0x2c]
push edi
mov di, word [esi + 0x124]
mov byte [esp + 0x30], cl
mov ecx, esi
mov byte [esp + 0x48], bl
mov word [esp + 0x1c], dx
mov dword [esp + 0x28], edi
call fcn.00426e50
mov byte [esp + 0x60], al
mov eax, dword [0x4971e8]
push eax
push 0
push str.ResSlcMode
push str.STLC
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [esp + 0x13], al
mov eax, edi
and eax, 0xffff
xor ecx, ecx
mov cx, word [esi + 0x16e]
mov dword [esp + 0x40], eax
cdq
idiv ecx
lea edx, [esi + 0x602d]
lea edi, [esi + 0x605e]
mov ecx, edx
mov byte [esi + 0x602c], al
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov ecx, 0x400
or eax, 0xffffffff
test bl, bl
rep stosd dword es:[edi], eax
jbe 0x427a15
mov edi, dword [esp + 0x30]
mov dword [esp + 0x38], 0
and edi, 0xff
mov dword [esp + 0x44], edx
mov eax, edi
mov ebx, edi
imul eax, dword [esp + 0x40]
mov dword [esp + 0x58], eax
lea eax, [esi + 0x603e]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
shl ebx, 7
and eax, 0xff
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov ecx, ebp
mov dword [esp + 0x48], eax
mov al, byte [esp + 0x30]
mov byte [esp + 0x12], 0
test al, al
jbe 0x4279df
mov eax, dword [esp + 0x38]
mov edi, edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x2c]
xor bl, bl
mov byte [esp + 0x18], bl
cmp word [eax], 0
jne 0x4277c4
mov byte [edi], bl
jmp 0x427991
mov al, byte [esp + 0x13]
mov dl, byte [esp + 0x60]
test al, al
mov byte [edi], dl
jne 0x42791b
mov eax, dword [esp + 0x1c]
mov di, word [esi + 0x16e]
and eax, 0xffff
mov ebp, edi
cdq
and ebp, 0xffff
idiv ebp
movzx bp, al
imul ebp, edi
cmp bp, word [esp + 0x1c]
mov byte [esp + 0x4c], al
mov dword [esp + 0x14], ebp
jae 0x427878
mov edx, dword [esp + 0x24]
mov eax, ebp
and eax, 0xffff
lea edi, [eax + edx]
mov al, byte [esp + 0x64]
cmp byte [ecx + edi], al
ja 0x42786c
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
and edx, 0xff
lea ebp, [edx + eax]
mov eax, dword [esp + 0x14]
movzx dx, byte [esp + 0x12]
imul edx, dword [esp + 0x28]
add edx, eax
inc bl
mov word [esi + ebp*2 + 0x605e], dx
mov al, byte [ecx + edi]
mov byte [esi + ebp + 0x705e], al
mov al, byte [esp + 0x60]
cmp bl, al
mov byte [ecx + edi], 0xf5
mov byte [esp + 0x18], bl
je 0x427991
mov ebp, dword [esp + 0x14]
inc ebp
cmp bp, word [esp + 0x1c]
mov dword [esp + 0x14], ebp
jb 0x427807
cmp bl, byte [esp + 0x60]
je 0x427991
mov edx, dword [esp + 0x4c]
xor edi, edi
mov di, word [esi + 0x16e]
and edx, 0xff
imul edi, edx
xor eax, eax
test edi, edi
mov dword [esp + 0x14], eax
jle 0x427991
mov edi, dword [esp + 0x24]
add edi, eax
mov al, byte [esp + 0x64]
cmp byte [ecx + edi], al
ja 0x4278fb
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
and eax, 0xff
add ebp, eax
movzx ax, byte [esp + 0x12]
imul eax, dword [esp + 0x28]
add eax, dword [esp + 0x14]
inc bl
mov byte [esp + 0x18], bl
mov word [esi + ebp*2 + 0x605e], ax
mov al, byte [ecx + edi]
mov byte [esi + ebp + 0x705e], al
mov al, byte [esp + 0x60]
cmp bl, al
mov byte [ecx + edi], 0xf5
je 0x427991
mov eax, dword [esp + 0x14]
xor edi, edi
mov di, word [esi + 0x16e]
inc eax
imul edi, edx
mov dword [esp + 0x14], eax
and eax, 0xffff
cmp eax, edi
jl 0x4278a6
jmp 0x427991
xor eax, eax
cmp word [esp + 0x1c], ax
mov dword [esp + 0x14], eax
jbe 0x427991
mov edi, dword [esp + 0x24]
mov edx, eax
and edx, 0xffff
lea ebp, [edx + edi]
mov dl, byte [esp + 0x64]
cmp byte [ecx + ebp], dl
ja 0x427985
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
and eax, 0xff
lea edi, [eax + edx]
mov eax, dword [esp + 0x14]
movzx dx, byte [esp + 0x12]
imul edx, dword [esp + 0x28]
add edx, eax
inc bl
mov word [esi + edi*2 + 0x605e], dx
mov dl, byte [ecx + ebp]
mov byte [edi + esi + 0x705e], dl
mov dl, byte [esp + 0x60]
cmp bl, dl
mov byte [ecx + ebp], 0xf5
mov byte [esp + 0x18], bl
je 0x427991
inc eax
cmp ax, word [esp + 0x1c]
mov dword [esp + 0x14], eax
jb 0x427928
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
mov al, byte [esp + 0x12]
add edx, 0x80
add edi, 2
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
add ebx, edx
mov dl, byte [esp + 0x30]
inc al
inc edi
cmp al, dl
mov byte [esp + 0x12], al
mov dword [esp + 0x3c], edi
mov dword [esp + 0x24], ebx
jb 0x4277ad
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x58]
lea eax, [edi + edi]
add ecx, ebp
add edx, eax
mov eax, dword [esp + 0x38]
add eax, ebx
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
add edx, edi
dec eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
jne 0x42777e
mov eax, 1
pop edi
mov dword [esi + 0x6028], eax
pop ebx
pop esi
pop ebp
add esp, 0x4c
ret 8