Function at 0x414043
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4dcee3
call fcn.004d1ec0
mov eax, 0x1064
call fcn.004d2080
mov eax, dword [0x52f220]
push esi
push edi
mov esi, ecx
xor eax, ebp
xor edi, edi
cmp dword [esi + 0x98], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1060], esi
jne 0x41407f
mov eax, 0x80004003
jmp 0x414967
cmp byte [0x532ac8], 0
je 0x41408f
xor eax, eax
jmp 0x414967
push ebx
mov dword [ebp - 0x1068], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1064], edi
mov eax, dword [esi + 0x98]
mov ecx, dword [eax]
lea edx, [ebp - 0x1064]
push edx
push eax
mov byte [ebp - 4], 1
call dword [ecx + 0x18]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x1050], eax
cmp eax, edi
mov eax, dword [ebp - 0x1064]
jge 0x4140e5
cmp eax, edi
mov byte [ebp - 4], 0
je 0x4140da
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x1050]
jmp 0x41495c
mov ecx, dword [eax]
lea edx, [ebp - 0x1068]
push edx
push eax
call dword [ecx + 0x10]
lea eax, [ebp - 0x1068]
push eax
lea ecx, [ebp - 0x1070]
call fcn.00413e54
push str.Default.ini
lea ecx, [ebp - 0x1070]
mov byte [ebp - 4], 2
call fcn.00413f7c
mov eax, dword [esi + 0x7c]
push dword [ebp - 0x1070]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x98]
lea eax, [ebp - 0x104c]
push eax
call fcn.0041c5bc
pop ecx
mov ecx, eax
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x1050]
call fcn.004014ba
mov eax, dword [eax]
mov ecx, dword [esi + 0x7c]
mov edx, dword [ecx]
push eax
push ecx
mov byte [ebp - 4], 4
call dword [edx + 0x44]
push dword [ebp - 0x1050]
call ebx
lea ecx, [ebp - 0x104c]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esi + 0x7c]
mov ecx, dword [eax]
push 4
push eax
call dword [ecx + 0x4c]
lea eax, [ebp - 0x1068]
push eax
lea ecx, [ebp - 0x106c]
call fcn.00413e54
push str.id.dat
lea ecx, [ebp - 0x106c]
mov byte [ebp - 4], 5
call fcn.00413f7c
push 7
pop ecx
push dword [ebp - 0x106c]
mov word [ebp - 0x30], di
xor eax, eax
lea edi, [ebp - 0x2e]
rep stosd dword es:[edi], eax
push 0x10
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push str.0000
push str.partnerID
push str.AppSettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x1050]
call fcn.004014ba
mov ecx, dword [esi + 0x7c]
mov eax, dword [eax]
mov edx, dword [ecx]
mov byte [ebp - 4], 6
push eax
push ecx
call dword [edx + 0x54]
push dword [ebp - 0x1050]
mov byte [ebp - 4], 5
call ebx
push 1
push str.ConfigBt_SetPortType
mov edi, str.BtGenericSettings
push edi
call fcn.00413bee
mov ecx, eax
call fcn.00430ba9
test eax, eax
jne 0x41426e
mov eax, dword [esi + 0x7c]
push 0x3a98
mov dword [ebp - 0x1054], eax
mov eax, dword [eax]
push str.ConfigBt_Manul_UdpPort
push edi
mov dword [ebp - 0x1050], eax
call fcn.00413bee
mov ecx, eax
call fcn.00430ba9
push eax
push 0x50
push str.ConfigBt_Manul_TcpPort
push edi
call fcn.00413bee
mov ecx, eax
call fcn.00430ba9
push eax
push dword [ebp - 0x1054]
mov eax, dword [ebp - 0x1050]
call dword [eax + 0x5c]
mov eax, dword [esi + 0x7c]
push 1
mov dword [ebp - 0x1054], eax
mov eax, dword [eax]
push str.ConfigBt_Dht
push edi
mov dword [ebp - 0x1050], eax
call fcn.00413bee
mov ecx, eax
call fcn.00430ba9
push eax
push dword [ebp - 0x1054]
mov eax, dword [ebp - 0x1050]
call dword [eax + 0x6c]
mov eax, dword [esi + 0x7c]
mov edi, dword [eax]
push 1
push str.ConfigNet_Upnp
push str.ConfigNet
mov dword [ebp - 0x1054], eax
call fcn.00413bee
mov ecx, eax
call fcn.00430ba9
push eax
push dword [ebp - 0x1054]
call dword [edi + 0x78]
and dword [ebp - 0x105c], 0
mov esi, dword [esi + 0x7c]
mov eax, dword [esi]
lea ecx, [ebp - 0x105c]
push ecx
push esi
mov byte [ebp - 4], 7
call dword [eax + 0x38]
xor edi, edi
inc edi
push edi
push str.ConfigEmule_Encode
mov esi, 0x4ef7e8
push esi
call fcn.00413bee
mov ecx, eax
call fcn.00430ba9
test eax, eax
mov eax, dword [ebp - 0x105c]
mov ecx, dword [eax]
je 0x414315
push edi
jmp 0x414317
push 0
push eax
call dword [ecx + 0x20]
push edi
push str.ConfigEmule_Identify
push esi
call fcn.00413bee
mov ecx, eax
call fcn.00430ba9
test eax, eax
mov eax, dword [ebp - 0x105c]
mov ecx, dword [eax]
je 0x41433e
push 3
jmp 0x414340
push 0
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x105c]
push edi
mov dword [ebp - 0x1050], eax
mov eax, dword [eax]
push str.ConfigEmule_Compress
push esi
mov dword [ebp - 0x1054], eax
call fcn.00413bee
mov ecx, eax
call fcn.00430ba9
push eax
push dword [ebp - 0x1050]
mov eax, dword [ebp - 0x1054]
call dword [eax + 0x28]
mov eax, dword [ebp - 0x105c]
mov edi, dword [eax]
push 1
push str.ConfigEmule_Kad
push esi
mov dword [ebp - 0x1050], eax
call fcn.00413bee
mov ecx, eax
call fcn.00430ba9
push eax
push dword [ebp - 0x1050]
call dword [edi + 0x38]
mov eax, dword [ebp - 0x105c]
mov edi, dword [eax]
push 1
push str.ConfigEmule_Ed2k
push esi
mov dword [ebp - 0x1050], eax
call fcn.00413bee
mov ecx, eax
call fcn.00430ba9
push eax
push dword [ebp - 0x1050]
call dword [edi + 0x40]
mov eax, dword [ebp - 0x105c]
mov edi, dword [eax]
push 1
push str.ConfigEmule_Aich
push esi
mov dword [ebp - 0x1050], eax
call fcn.00413bee
mov ecx, eax
call fcn.00430ba9
push eax
push dword [ebp - 0x1050]
call dword [edi + 0x48]
mov eax, dword [ebp - 0x105c]
mov edi, dword [eax]
push 0x6590
push 0x3e80
mov dword [ebp - 0x1050], eax
call fcn.00413c85
pop ecx
pop ecx
push eax
push str.ConfigEmule_Kadport
push esi
call fcn.00413bee
mov ecx, eax
call fcn.00430ba9
push eax
push dword [ebp - 0x1050]
call dword [edi + 0x50]
push str._CHN_yourname
push str.ConfigEmule_NickName
push esi
call fcn.00413bee
mov ecx, eax
call fcn.00430be5
push eax
lea ecx, [ebp - 0x1050]
call fcn.004014ba
mov eax, dword [eax]
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x105c]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x58]
push dword [ebp - 0x1050]
mov byte [ebp - 4], 7
call ebx
push 1
push str.ConfigEmule_Ed2k
push esi
call fcn.00413bee
mov ecx, eax
call fcn.00430ba9
test eax, eax
je 0x4144b9
push 0
push str.ConfigEmule_AutoLink
push esi
call fcn.00413bee
mov ecx, eax
call fcn.00430ba9
test eax, eax
je 0x4144b9
mov eax, dword [ebp - 0x105c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x60]
mov edi, dword [ebp - 0x1060]
mov eax, dword [edi + 0x7c]
mov esi, dword [eax]
push 1
push str.ConfigNet_OpenMirrorImageIncreaseSpeed
push str.ConfigNet
mov dword [ebp - 0x1054], eax
call fcn.00413bee
mov ecx, eax
call fcn.00430ba9
push eax
push dword [ebp - 0x1054]
call dword [esi + 0x104]
mov eax, dword [edi + 0x7c]
mov esi, dword [eax]
push 1
push str.ConfigNet_OpenXunleiP2PIncreaseSpeed
push str.ConfigNet
mov dword [ebp - 0x1054], eax
call fcn.00413bee
mov ecx, eax
call fcn.00430ba9
push eax
push dword [ebp - 0x1054]
call dword [esi + 0x10c]
push 0
push str.UseProxy
mov esi, str.Proxy
push esi
call fcn.00413bee
mov ecx, eax
call fcn.00430ba9
cmp eax, 1
jne 0x4145f3
xor esi, esi
mov dword [ebp - 0x1054], esi
mov dword [ebp - 0x1058], esi
mov dword [ebp - 0x1060], esi
mov eax, dword [edi + 0x7c]
mov ecx, dword [eax]
lea edx, [ebp - 0x1060]
push edx
lea edx, [ebp - 0x1058]
push edx
lea edx, [ebp - 0x1054]
push edx
push eax
mov byte [ebp - 4], 0xb
call dword [ecx + 0x90]
mov eax, dword [ebp - 0x1054]
cmp eax, esi
je 0x4145ae
mov ecx, dword [eax]
lea edx, [ebp - 0x1050]
push edx
push eax
call dword [ecx + 0xc]
cmp dword [ebp - 0x1050], esi
mov edi, dword [edi + 0x7c]
mov eax, dword [edi]
jne 0x4145a1
push esi
jmp 0x4145a7
push dword [ebp - 0x1054]
push edi
call dword [eax + 0x88]
mov eax, dword [ebp - 0x1060]
cmp eax, esi
mov byte [ebp - 4], 0xa
je 0x4145c2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1058]
cmp eax, esi
mov byte [ebp - 4], 9
je 0x4145d6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1054]
cmp eax, esi
mov byte [ebp - 4], 7
je 0x41491b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x41491b
cmp eax, 2
jne 0x41490d
push 0x4efb40
push str.ServerProxy
push esi
call fcn.00413bee
mov ecx, eax
call fcn.00430be5
test eax, eax
jne 0x41461c
mov eax, 0x4ed274
push eax
lea ecx, [ebp - 0x104c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [ebp - 0x104c]
push 0x4efb40
push eax
mov byte [ebp - 4], 0xc
call dword [sym.imp.MSVCP71.dll_bool___cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
test al, al
pop ecx
pop ecx
je 0x414658
mov edi, dword [edi + 0x7c]
mov eax, dword [edi]
push 0
push edi
call dword [eax + 0x88]
jmp 0x4148fb
and dword [ebp - 0x1058], 0
mov edi, dword [edi + 0x7c]
mov eax, dword [edi]
lea ecx, [ebp - 0x1058]
push ecx
push edi
mov byte [ebp - 4], 0xd
call dword [eax + 0x84]
xor edi, edi
cmp dword [ebp - 0x1058], edi
je 0x4148e7
push edi
push str.ProxyCount
push esi
call fcn.00413bee
mov ecx, eax
call fcn.00430ba9
and dword [ebp - 0x1054], 0
mov dword [ebp - 0x1050], eax
mov word [ebp - 0x1030], di
xor eax, eax
cmp dword [ebp - 0x1050], 0
mov ecx, 0x3ff
lea edi, [ebp - 0x102e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jle 0x414732
mov edi, dword [sym.imp.MSVCR71.dll_swprintf]
push dword [ebp - 0x1054]
lea eax, [ebp - 0x1030]
push str.Proxy_dProxyName
push eax
call edi
add esp, 0xc
push 0x4ed274
lea eax, [ebp - 0x1030]
push eax
push esi
call fcn.00413bee
mov ecx, eax
call fcn.00430be5
test eax, eax
je 0x414713
push eax
lea eax, [ebp - 0x104c]
push eax
call dword [sym.imp.MSVCP71.dll_bool___cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
test al, al
pop ecx
pop ecx
jne 0x414729
inc dword [ebp - 0x1054]
mov eax, dword [ebp - 0x1054]
cmp eax, dword [ebp - 0x1050]
jl 0x4146cb
jmp 0x414732
cmp dword [ebp - 0x1054], 0xffffffff
jne 0x414739
push 0
jmp 0x4148d5
push dword [ebp - 0x1054]
lea eax, [ebp - 0x1030]
push str.Proxy_dPassword
push eax
call edi
add esp, 0xc
push 0x4ed274
lea eax, [ebp - 0x1030]
push eax
push esi
call fcn.00413bee
mov ecx, eax
call fcn.00430be5
push eax
lea ecx, [ebp - 0x1050]
call fcn.004014ba
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1058]
mov edx, dword [ecx]
push eax
push ecx
mov byte [ebp - 4], 0xe
call dword [edx + 0x30]
push dword [ebp - 0x1050]
mov byte [ebp - 4], 0xd
call ebx
push dword [ebp - 0x1054]
lea eax, [ebp - 0x1030]
push str.Proxy_dProxyAddress
push eax
call edi
add esp, 0xc
push 0x4ed274
lea eax, [ebp - 0x1030]
push eax
push esi
call fcn.00413bee
mov ecx, eax
call fcn.00430be5
push eax
lea ecx, [ebp - 0x1050]
call fcn.004014ba
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1058]
mov edx, dword [ecx]
push eax
push ecx
mov byte [ebp - 4], 0xf
call dword [edx + 0x24]
push dword [ebp - 0x1050]
mov byte [ebp - 4], 0xd
call ebx
push dword [ebp - 0x1054]
lea eax, [ebp - 0x1030]
push str.Proxy_dUserName
push eax
call edi
add esp, 0xc
push 0x4ed274
lea eax, [ebp - 0x1030]
push eax
push esi
call fcn.00413bee
mov ecx, eax
call fcn.00430be5
push eax
lea ecx, [ebp - 0x1050]
call fcn.004014ba
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1058]
mov edx, dword [ecx]
push eax
push ecx
mov byte [ebp - 4], 0x10
call dword [edx + 0x2c]
push dword [ebp - 0x1050]
mov byte [ebp - 4], 0xd
call ebx
push dword [ebp - 0x1054]
lea eax, [ebp - 0x1030]
push str.Proxy_dProxyPort
push eax
call edi
add esp, 0xc
push 0x50
lea eax, [ebp - 0x1030]
push eax
push esi
call fcn.00413bee
mov ecx, eax
call fcn.00430ba9
mov ecx, dword [ebp - 0x1058]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x28]
push dword [ebp - 0x1054]
lea eax, [ebp - 0x1030]
push str.Proxy_dProxyStyle
push eax
call edi
add esp, 0xc
push 2
lea eax, [ebp - 0x1030]
push eax
push esi
call fcn.00413bee
mov ecx, eax
call fcn.00430ba9
cmp eax, 3
jne 0x4148b9
push eax
jmp 0x4148c3
cmp eax, 1
jne 0x4148c1
push eax
jmp 0x4148c3
push 2
mov eax, dword [ebp - 0x1058]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
push dword [ebp - 0x1058]
mov eax, dword [ebp - 0x1060]
mov eax, dword [eax + 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x1058]
test eax, eax
mov byte [ebp - 4], 0xc
je 0x4148fb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x104c]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x41491b
mov edi, dword [edi + 0x7c]
mov eax, dword [edi]
push 0
push edi
call dword [eax + 0x88]
mov eax, dword [ebp - 0x105c]
test eax, eax
mov byte [0x532ac8], 1
mov byte [ebp - 4], 5
je 0x414936
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x106c]
call ebx
push dword [ebp - 0x1070]
call ebx
mov eax, dword [ebp - 0x1064]
test eax, eax
mov byte [ebp - 4], 0
je 0x41495a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor esi, esi
push dword [ebp - 0x1068]
call ebx
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
xor ecx, ebp
pop esi
call fcn.004d1f17
leave
ret