Function at 0x4036d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528271
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x573790]
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 edi, [ebp - 0x16c]
call fcn.00401740
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [eax]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x403715
sub eax, esi
push eax
push ecx
mov ecx, 0x574a84
call fcn.00408e80
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x16c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403753
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x168]
push str.3CCollection.ini
push ecx
call fcn.00407a90
add esp, 8
mov esi, eax
mov edi, 0x10
cmp esi, 0x574aa0
je 0x4037e4
cmp dword [0x574ab4], edi
jb 0x40378d
mov edx, dword [0x574aa0]
push edx
call fcn.0040c4d4
add esp, 4
mov dword [0x574ab4], 0xf
mov dword [0x574ab0], ebx
mov byte [0x574aa0], bl
cmp dword [esi + 0x14], edi
jae 0x4037bd
mov eax, dword [esi + 0x10]
inc eax
push eax
push esi
push 0x574aa0
call fcn.004fee80
add esp, 0xc
jmp 0x4037c6
mov eax, dword [esi]
mov dword [0x574aa0], eax
mov dword [esi], ebx
mov ecx, dword [esi + 0x10]
mov dword [0x574ab0], ecx
mov edx, dword [esi + 0x14]
mov dword [0x574ab4], edx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x154], edi
jb 0x403802
mov eax, dword [ebp - 0x168]
push eax
call fcn.0040c4d4
add esp, 4
push 0x7f
lea ecx, [ebp - 0xaf]
push ebx
push ecx
mov byte [ebp - 0xb0], bl
call fcn.005023a0
push 0x7f
lea edx, [ebp - 0x12f]
push ebx
push edx
mov byte [ebp - 0x130], bl
call fcn.005023a0
add esp, 0x18
push 0xffffffffffffffff
push ebx
push 0x574aa0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x138], 0xf
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
call fcn.00408ac0
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x14c]
cmp dword [ebp - 0x138], edi
jae 0x403873
lea eax, [ebp - 0x14c]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 2
push str.COMPORT
push str.SETTING
call esi
mov dword [0x57b6a4], eax
mov eax, dword [ebp - 0x14c]
cmp dword [ebp - 0x138], edi
jae 0x4038a1
lea eax, [ebp - 0x14c]
push eax
push 0x2580
push str.BAUDATE
push str.SETTING
call esi
mov dword [0x57b6a8], eax
mov eax, dword [ebp - 0x14c]
cmp dword [ebp - 0x138], edi
jae 0x4038cc
lea eax, [ebp - 0x14c]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push 0x80
lea eax, [ebp - 0x130]
push eax
push str.Administrator
push str.USER
push str.SETTING
call esi
mov eax, dword [ebp - 0x14c]
cmp dword [ebp - 0x138], edi
jae 0x403904
lea eax, [ebp - 0x14c]
push eax
push 0x80
lea ecx, [ebp - 0xb0]
push ecx
push str.gtdq__
push str.PASSWORD
push str.SETTING
call esi
mov edx, dword [0x57b6a4]
xor eax, eax
push edx
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov byte [ebp - 0x13], al
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov word [ebp - 0x1f], ax
mov byte [ebp - 0x1d], al
lea eax, [ebp - 0x1c]
push 0x554a2c
push eax
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x30], bl
call fcn.004ff6e3
mov ecx, dword [0x57b6a8]
push ecx
lea edx, [ebp - 0x30]
push 0x554a2c
push edx
call fcn.004ff6e3
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0xb0]
lea edx, [ebp - 0x1c]
call fcn.00401890
add esp, 0x20
cmp dword [ebp - 0x138], edi
jb 0x4039a3
mov edx, dword [ebp - 0x14c]
push edx
call fcn.0040c4d4
add esp, 4
mov al, 1
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.004fecc6
mov esp, ebp
pop ebp
ret