Function at 0x2005363d
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2009fc0e
call fcn.2007d394
sub esp, 0xac
mov eax, dword [0x200cc84c]
push ebx
push esi
xor eax, ebp
mov esi, ecx
mov dword [ebp - 0x10], eax
lea eax, [esi + 8]
push edi
mov dword [esi], 0x200a9d9c
xor ebx, ebx
push eax
mov dword [ebp - 0xb8], esi
mov dword [eax + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], ebx
lea ecx, [esi + 0x24]
call fcn.20050861
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.20050861
mov byte [ebp - 4], 2
lea ecx, [esi + 0x3c]
call fcn.2004dcb8
mov byte [ebp - 4], 3
lea ecx, [esi + 0x48]
call fcn.200757d7
mov byte [ebp - 4], 4
lea ecx, [esi + 0xa4]
call fcn.200757d7
mov byte [ebp - 4], 5
lea ecx, [esi + 0x100]
call fcn.20002957
mov byte [ebp - 4], 6
lea ecx, [esi + 0x11c]
call fcn.20053513
mov byte [ebp - 4], 7
lea ecx, [esi + 0x128]
call fcn.20053539
mov byte [ebp - 4], 8
lea ecx, [esi + 0x134]
call fcn.20002957
mov byte [ebp - 4], 9
lea edi, [esi + 0x154]
mov ecx, edi
call fcn.200013ff
lea ecx, [esi + 0x164]
call fcn.20033aec
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x254]
call fcn.20002957
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x27c]
call fcn.200253d6
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x284]
call fcn.20002957
mov byte [ebp - 4], 0xd
lea ecx, [esi + 0x2a8]
call fcn.20002957
mov byte [ebp - 4], 0xe
lea ecx, [esi + 0x2d0]
call fcn.2000a415
mov byte [ebp - 4], 0xf
mov dword [esi + 0x2cc], ebx
lea ecx, [ebp - 0xa0]
call fcn.200706ea
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xa0]
call fcn.2006f98c
test eax, eax
je 0x200537e8
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xb0], ebx
call fcn.2006fa73
test al, al
je 0x200537e8
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa4], 0xa
call fcn.2006fbff
cmp dword [ebp - 0xa4], 0x14
jae 0x200537e8
push 0xc8
lea ecx, [ebp - 0xa0]
mov dword [esi + 0x2cc], 1
call fcn.2007023b
push 0x200a6b94
push 1
push str.StartUPNP
push str.upnp
mov dword [esi + 0x160], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, ebx
je 0x20053811
mov dword [esi + 0x15c], ebx
jmp 0x2005381b
mov dword [esi + 0x15c], 1
push 8
lea eax, [esi + 0x2a0]
push ebx
push eax
mov dword [edi], ebx
mov word [edi + 4], bx
call fcn.2007e690
add esp, 0xc
inc dword [0x200dddc8]
cmp dword [esi + 0x15c], ebx
mov dword [esi + 0x270], ebx
mov dword [esi + 0x150], ebx
mov dword [esi + 0x274], ebx
mov dword [esi + 0x278], ebx
jne 0x2005387b
lea edi, [esi + 0x164]
mov ecx, edi
call fcn.20033c8f
push 1
push 0x3039
push ebx
mov ecx, edi
mov dword [esi + 0x168], ebx
call fcn.20033e10
lea edi, [esi + 0x27c]
push 0x200a9f50
mov ecx, edi
call fcn.200253f4
test eax, eax
je 0x200539db
lea eax, [ebp - 0xa4]
push eax
mov ecx, edi
call fcn.200254ce
mov byte [ebp - 4], 0x11
push dword [eax]
lea edi, [esi + 0x284]
mov ecx, edi
call fcn.20003a20
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xa4]
call fcn.200026ee
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xb4], esp
push 0x200a6a14
mov dword [ebp - 0xa8], ebx
call fcn.20003c27
mov byte [ebp - 4], 0x12
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xb0], esp
push 0x200a4c08
call fcn.20003c27
mov byte [ebp - 4], 0x13
mov byte [ebp - 4], 0x10
mov ecx, edi
call fcn.2002833d
lea eax, [esi + 0x2a0]
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xb0], eax
push 1
push dword [ebp - 0xa8]
lea eax, [ebp - 0xac]
push eax
mov ecx, edi
mov byte [ebp - 0xac], 0x2e
call fcn.200017e0
cmp eax, dword [ebp - 0xa8]
mov dword [ebp - 0xb4], eax
je 0x200539a5
sub eax, dword [ebp - 0xa8]
mov ecx, edi
push eax
push dword [ebp - 0xa8]
lea eax, [ebp - 0x40]
push eax
call fcn.200039ea
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x28], 0x10
mov eax, dword [ebp - 0x3c]
jae 0x2005396d
lea eax, [ebp - 0x3c]
push eax
call fcn.2007db04
pop ecx
mov ecx, dword [ebp - 0xb0]
mov word [ecx], ax
mov eax, dword [ebp - 0xb4]
cmp eax, ebx
jl 0x200539c1
inc eax
cmp eax, dword [esi + 0x298]
mov dword [ebp - 0xa8], eax
jge 0x200539c1
mov byte [ebp - 4], 0x10
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.2000275e
inc dword [ebp - 0xa4]
add dword [ebp - 0xb0], 2
cmp dword [ebp - 0xa4], 4
jl 0x2005391a
jmp 0x200539d0
mov byte [ebp - 4], 0x10
push ebx
lea ecx, [ebp - 0x40]
push 1
call fcn.2000275e
lea ecx, [esi + 0x27c]
call fcn.200253e0
push 2
lea ecx, [esi + 0xa4]
call fcn.20074fa6
push 0x200a6b94
push ebx
push str.startcnt
push str.exceptstat
mov dword [esi + 0x2c4], ebx
mov dword [esi + 0x2c8], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, eax
xor eax, eax
mov byte [ebp - 0x24], bl
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
inc ecx
push ecx
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
push 0x200a4c68
push eax
call fcn.2007d900
add esp, 0xc
push 0x200a6b94
lea eax, [ebp - 0x24]
push eax
push str.startcnt
push str.exceptstat
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xa0]
call fcn.2007044d
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.2007c9ae
leave
ret