Function at 0x4577b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ae09
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x5c524c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x240]
mov dword [ebp - 0x244], 0
push eax
call fcn.00456620
push 0x1fe
lea eax, [ebp - 0x210]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0051e5a0
add esp, 0x10
lea eax, [ebp - 0x240]
cmp dword [ebp - 0x22c], 8
cmovae eax, dword [ebp - 0x240]
push eax
push 0x7e8
lea eax, [ebp - 0x210]
push eax
push 0x5798f8
push dword [0x5c51f8]
push dword [0x5c51fc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.00462ac0
mov esi, eax
mov dword [ebp - 0x218], 0
xorps xmm0, xmm0
mov dword [ebp - 0x214], 7
xor eax, eax
movlpd qword [ebp - 0x24c], xmm0
lea ecx, [ebp - 0x210]
mov word [ebp - 0x228], ax
mov edi, edx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457883
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x228]
call fcn.0041cb00
mov dword [ebp - 0x300], 0x57df80
mov dword [ebp - 0x2f0], 0x57df88
push 0
lea eax, [ebp - 0x2e8]
mov byte [ebp - 4], 2
xorps xmm0, xmm0
mov dword [ebp - 0x244], 1
push eax
lea ecx, [ebp - 0x298]
mov dword [ebp - method.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 0x29c], 0x50
movlpd qword [ebp - 0x2f8], xmm0
call fcn.0045c8f0
lea eax, [ebp - 0x2f0]
mov dword [ebp - 0x250], eax
mov eax, dword [ebp - 0x2f0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x2f0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x2f4], eax
mov eax, dword [ebp - 0x300]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x300]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x304], eax
mov eax, dword [ebp - 0x300]
push 3
mov dword [ebp - 4], 7
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x300]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x304], eax
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x2e8]
call fcn.00453d70
mov edx, dword [ebp - 0x214]
mov byte [ebp - 4], 9
cmp edx, 8
jb 0x4579da
mov ecx, dword [ebp - 0x228]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4579d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457a86
push edx
push ecx
call fcn.004729bf
add esp, 8
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x300]
call fcn.00453420
mov eax, dword [ebp - 0x300]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x2f4], 6
je 0x457a03
mov bl, 1
jmp 0x457a21
sub esi, dword [ebp - 0x24c]
sbb edi, dword [ebp - 0x248]
cmp edi, dword [ebp + 0xc]
jl 0x457a1f
jg 0x457a1b
cmp esi, dword [ebp + 8]
jbe 0x457a1f
mov bl, 1
jmp 0x457a21
xor bl, bl
lea ecx, [ebp - 0x300]
call fcn.00455950
mov edx, dword [ebp - 0x22c]
cmp edx, 8
jb 0x457a68
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457a5e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457a8b
push edx
push ecx
call fcn.004729bf
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047285d
mov esp, ebp
pop ebp
ret
call fcn.00522b89
call fcn.00522b89
int3