Function at 0x50dc50
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x2824]
mov eax, 0x2824
call fcn.005e00d0
push 0xfffffffffffffffe
push 0x673290
push 0x5dfbd0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x6aae14]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x2820], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0x282c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0x2830]
mov dword [ebp - 0x1c], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [0x690384], ebx
je 0x50dcdc
mov dword [ebp - 0x38], ebx
lea edx, [ebp - 0x38]
push edx
push str.IgnoreIPChange
push 0x60d9ec
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004d5820
cmp dword [ebp - 0x38], ebx
jne 0x50dcdc
call fcn.0050b7e0
cmp dword [0x74c594], ebx
jne 0x50dfa0
mov esi, 1
mov dword [0x74c594], esi
push 0x74c490
call fcn.004ef9d0
test eax, eax
je 0x50dfa0
mov dword [ebp - 0x40], ebx
mov byte [ebp + 0x2618], bl
push 0x103
push ebx
lea eax, [ebp + 0x2619]
push eax
call fcn.005dfd60
add esp, 0xc
call fcn.004f0de0
cmp eax, ebx
je 0x50dfa0
mov byte [ebp + 0x2000], bl
push 0x103
push ebx
lea ecx, [ebp + 0x2001]
push ecx
call fcn.005dfd60
push ebx
push 0x104
lea edx, [ebp + 0x2000]
push edx
push 0x60c81c
push str.server
push 0x60c810
call fcn.004edfd0
add esp, 0x24
cmp byte [ebp + 0x2000], 0x30
jne 0x50dfa0
mov dword [ebp - 0x40], esi
mov byte [ebp], bl
push 0x1fff
push ebx
lea eax, [ebp + 1]
push eax
call fcn.005dfd60
push ebx
push 0x2000
lea ecx, [ebp]
push ecx
push 0x60c81c
push str.ServerIPs
push 0x60c810
call fcn.004edfd0
add esp, 0x24
cmp byte [ebp], bl
je 0x50de3b
mov byte [ebp + 0x2410], bl
push 0x103
push ebx
lea edx, [ebp + 0x2411]
push edx
call fcn.005dfd60
mov dword [ebp - 0x30], ebx
push esi
push ebx
push 0x2c
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0x2410]
push ecx
lea edx, [ebp]
push edx
call fcn.004e1380
add esp, 0x24
or edi, 0xffffffff
cmp dword [ebp - 0x30], edi
je 0x50de3b
push ebx
lea eax, [ebp + 0x2410]
push eax
call fcn.00508760
add esp, 8
test eax, eax
je 0x50de1e
push esi
push 0x2c
lea ecx, [ebp + 0x2410]
push ecx
push 0x74c090
call fcn.004e56c0
push esi
push ebx
push 0x2c
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp + 0x2410]
push eax
lea ecx, [ebp]
push ecx
call fcn.004e1380
add esp, 0x18
jmp 0x50ddf1
push 0x74c490
lea edx, [ebp + 0x2618]
push edx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call edi
lea eax, [ebp + 0x2618]
push eax
call fcn.004e24e0
add esp, 4
push str.eupdate.ini
lea ecx, [ebp + 0x2618]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp byte [0x74c090], bl
jne 0x50dfa6
push esi
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp + 0x2618]
push edx
call fcn.004e8950
add esp, 0x18
test eax, eax
jne 0x50dfa6
lea eax, [ebp + 0x2618]
push eax
push 0x2000
lea ecx, [ebp]
push ecx
push 0x60c81c
push str.Servers
push 0x60da74
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
call esi
cmp byte [ebp], bl
je 0x50df4d
mov byte [ebp + 0x230c], bl
push 0x103
push ebx
lea edx, [ebp + 0x230d]
push edx
call fcn.005dfd60
mov dword [ebp - 0x28], ebx
push 1
push ebx
push 0x2c
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 0x230c]
push ecx
lea edx, [ebp]
push edx
call fcn.004e1380
add esp, 0x24
nop
cmp dword [ebp - 0x28], 0xffffffff
je 0x50df4d
push ebx
lea eax, [ebp + 0x230c]
push eax
call fcn.00508760
add esp, 8
test eax, eax
je 0x50df2f
push 1
push 0x2c
lea ecx, [ebp + 0x230c]
push ecx
push 0x74c090
call fcn.004e56c0
push 1
push ebx
push 0x2c
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp + 0x230c]
push eax
lea ecx, [ebp]
push ecx
call fcn.004e1380
add esp, 0x18
jmp 0x50df00
cmp byte [0x74c090], bl
jne 0x50dfa6
lea edx, [ebp + 0x2618]
push edx
push 0x2000
lea eax, [ebp]
push eax
push 0x60c81c
push str.FTPHost
push 0x60da74
call esi
cmp byte [ebp], bl
je 0x50dfa6
push ebx
lea ecx, [ebp]
push ecx
call fcn.00508760
add esp, 8
test eax, eax
je 0x50dfa6
push 1
push 0x2c
lea edx, [ebp]
push edx
push 0x74c090
call fcn.004e56c0
jmp 0x50dfa6
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [0x74c08c]
cmp dword [0x74ac60], ebx
je 0x50e000
cmp esi, ebx
je 0x50e013
push str.127.0.0.1
push esi
call fcn.004dd620
add esp, 8
mov esi, dword [0x74c08c]
test eax, eax
je 0x50e000
cmp esi, ebx
je 0x50e145
push str.169.254.
push esi
call fcn.004dd6e0
add esp, 8
mov esi, dword [0x74c08c]
test eax, eax
je 0x50e000
cmp esi, ebx
je 0x50e145
cmp byte [esi], bl
jne 0x50e145
cmp esi, ebx
je 0x50e013
push esi
call fcn.005e0865
add esp, 4
mov dword [0x74c08c], ebx
mov dword [0x74ac60], 1
push 0x74c08c
push 0x74bf88
call fcn.0050a790
mov esi, dword [0x74c08c]
cmp esi, ebx
je 0x50e145
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov byte [ebp + 0x2514], bl
push 0x103
push ebx
lea eax, [ebp + 0x2515]
push eax
call fcn.005dfd60
push esi
call fcn.004dd6c0
inc eax
push eax
call fcn.005e20e4
add esp, 0x14
mov esi, eax
cmp esi, ebx
jne 0x50e08d
mov ecx, dword [0x74c08c]
push ecx
call fcn.005e0865
add esp, 4
push str.127.0.0.1
mov edx, dword [ebp - 0x1c]
push edx
call edi
jmp 0x50e3ee
mov eax, dword [0x74c08c]
push eax
push esi
call edi
push 1
push ebx
push 0x2c
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp + 0x2514]
push edx
mov eax, dword [0x74c08c]
push eax
call fcn.004e1380
add esp, 0x18
cmp dword [ebp - 0x2c], 0xffffffff
je 0x50e110
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp + 0x2514]
push edx
call fcn.00508cf0
add esp, 8
cmp eax, 1
je 0x50e0f7
cmp byte [0x74be80], bl
jne 0x50e0e8
lea eax, [ebp + 0x2514]
push eax
push 0x74be80
call edi
push 0x2c
lea ecx, [ebp + 0x2514]
push ecx
push esi
call fcn.004e5560
push 1
push ebx
push 0x2c
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp + 0x2514]
push eax
mov ecx, dword [0x74c08c]
push ecx
jmp 0x50e0ac
push esi
mov edx, dword [0x74c08c]
push edx
call edi
mov eax, dword [0x74c08c]
push eax
call fcn.004e1290
push esi
call fcn.005e0865
add esp, 8
cmp dword [ebp - 0x34], ebx
je 0x50e13f
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.005e0865
add esp, 4
mov esi, dword [0x74c08c]
cmp dword [ebp - 0x20], ebx
je 0x50e15b
push 0x74bf88
mov edx, dword [ebp - 0x20]
push edx
call edi
mov esi, dword [0x74c08c]
cmp dword [ebp - 0x1c], ebx
je 0x50e3ee
cmp esi, ebx
je 0x50e17b
cmp byte [esi], bl
jne 0x50e1b1
push esi
call fcn.005e0865
add esp, 4
mov dword [0x74c08c], ebx
cmp byte [0x74be80], bl
je 0x50e07d
push str.169.254.
push 0x74be80
call fcn.004dd6e0
add esp, 8
test eax, eax
je 0x50e07d
push 0x74be80
mov ecx, dword [ebp - 0x1c]
push ecx
call edi
jmp 0x50e3ee
cmp esi, ebx
je 0x50e17b
cmp byte [esi], bl
je 0x50e17b
push esi
mov eax, dword [ebp - 0x1c]
push eax
call edi
cmp dword [ebp + 0x2834], ebx
je 0x50e3c8
push 0x2c
mov esi, dword [ebp - 0x1c]
push esi
call fcn.004dad90
add esp, 8
inc eax
cmp eax, 1
jg 0x50e1e8
push 0x2c
push esi
jmp 0x50e3ba
mov byte [ebp + 0x271c], bl
push 0x103
push ebx
lea ecx, [ebp + 0x271d]
push ecx
call fcn.005dfd60
mov byte [ebp + 0x2208], bl
push 0x103
push ebx
lea edx, [ebp + 0x2209]
push edx
call fcn.005dfd60
add esp, 0x18
xor esi, esi
mov dword [ebp - 0x24], esi
cmp byte [0x74c090], bl
je 0x50e32d
xor edi, edi
mov dword [ebp - 0x3c], edi
push 1
push ebx
push 0x2c
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 0x271c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004e1380
add esp, 0x18
mov esi, dword [ebp - 0x24]
cmp esi, 0xffffffff
je 0x50e32d
push str.169.254.
call fcn.004dd6c0
push eax
push str.169.254.
lea eax, [ebp + 0x271c]
push eax
call fcn.004dd670
add esp, 0x10
test eax, eax
je 0x50e314
mov dword [ebp - 0x20], ebx
mov byte [ebp + 0x2104], bl
push 0x103
push ebx
lea ecx, [ebp + 0x2105]
push ecx
call fcn.005dfd60
push 1
push ebx
push 0x2c
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp + 0x2104]
push eax
push 0x74c090
call fcn.004e1380
add esp, 0x24
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, edi
cmp dword [ebp - 0x20], 0xffffffff
je 0x50e314
lea ecx, [ebp + 0x2104]
push ecx
lea edx, [ebp + 0x271c]
push edx
call fcn.004da4a0
add esp, 8
cmp eax, edi
jle 0x50e2f5
mov edi, eax
mov dword [ebp - 0x3c], edi
lea eax, [ebp + 0x271c]
push eax
lea ecx, [ebp + 0x2208]
push ecx
call esi
push 1
push ebx
push 0x2c
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp + 0x2104]
push eax
push 0x74c090
call fcn.004e1380
add esp, 0x18
jmp 0x50e2c0
push 1
push ebx
push 0x2c
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp + 0x271c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
jmp 0x50e245
cmp byte [ebp + 0x2208], bl
jne 0x50e39e
push 1
push ebx
push 0x2c
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp + 0x271c]
push edx
mov edi, dword [ebp - 0x1c]
push edi
call fcn.004e1380
add esp, 0x18
mov esi, dword [ebp - 0x24]
cmp esi, 0xffffffff
je 0x50e3b7
push str.169.254.
call fcn.004dd6c0
push eax
push str.169.254.
lea eax, [ebp + 0x271c]
push eax
call fcn.004dd670
add esp, 0x10
test eax, eax
je 0x50e38c
lea ecx, [ebp + 0x271c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x50e3b2
push 1
push ebx
push 0x2c
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp + 0x271c]
push eax
jmp 0x50e348
lea ecx, [ebp + 0x2208]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [ebp - 0x1c]
cmp esi, 0xffffffff
jne 0x50e3c8
push 0x2c
push edi
call fcn.005e0940
add esp, 8
cmp eax, ebx
je 0x50e3c8
mov byte [eax], bl
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004e1290
add esp, 4
jmp 0x50e3ee
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2820]
xor ecx, ebp
call fcn.005dfbbe
add ebp, 0x2824
mov esp, ebp
pop ebp
ret 0xc