Function at 0x41078f
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4db991
call fcn.004d1d50
mov eax, 0x1064
call fcn.004d1f10
mov eax, dword [0x52e400]
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 0x4107cb
mov eax, 0x80004003
jmp 0x4110b3
cmp byte [0x531cd8], 0
je 0x4107db
xor eax, eax
jmp 0x4110b3
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 0x410831
cmp eax, edi
mov byte [ebp - 4], 0
je 0x410826
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x1050]
jmp 0x4110a8
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.004105a6
push str.Default.ini
lea ecx, [ebp - 0x1070]
mov byte [ebp - 4], 2
call fcn.004106ce
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.0041952a
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.004014a4
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.004105a6
push str.id.dat
lea ecx, [ebp - 0x106c]
mov byte [ebp - 4], 5
call fcn.004106ce
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.004014a4
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.00410340
mov ecx, eax
call fcn.0042d8b0
test eax, eax
jne 0x4109ba
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.00410340
mov ecx, eax
call fcn.0042d8b0
push eax
push 0x50
push str.ConfigBt_Manul_TcpPort
push edi
call fcn.00410340
mov ecx, eax
call fcn.0042d8b0
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.00410340
mov ecx, eax
call fcn.0042d8b0
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 0x4ee2c8
mov dword [ebp - 0x1054], eax
call fcn.00410340
mov ecx, eax
call fcn.0042d8b0
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, 0x4ee468
push esi
call fcn.00410340
mov ecx, eax
call fcn.0042d8b0
test eax, eax
mov eax, dword [ebp - 0x105c]
mov ecx, dword [eax]
je 0x410a61
push edi
jmp 0x410a63
push 0
push eax
call dword [ecx + 0x20]
push edi
push str.ConfigEmule_Identify
push esi
call fcn.00410340
mov ecx, eax
call fcn.0042d8b0
test eax, eax
mov eax, dword [ebp - 0x105c]
mov ecx, dword [eax]
je 0x410a8a
push 3
jmp 0x410a8c
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.00410340
mov ecx, eax
call fcn.0042d8b0
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.00410340
mov ecx, eax
call fcn.0042d8b0
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.00410340
mov ecx, eax
call fcn.0042d8b0
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.00410340
mov ecx, eax
call fcn.0042d8b0
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.004103d7
pop ecx
pop ecx
push eax
push str.ConfigEmule_Kadport
push esi
call fcn.00410340
mov ecx, eax
call fcn.0042d8b0
push eax
push dword [ebp - 0x1050]
call dword [edi + 0x50]
push str._CHN_yourname
push str.ConfigEmule_NickName
push esi
call fcn.00410340
mov ecx, eax
call fcn.0042d8ec
push eax
lea ecx, [ebp - 0x1050]
call fcn.004014a4
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.00410340
mov ecx, eax
call fcn.0042d8b0
test eax, eax
je 0x410c05
push 0
push str.ConfigEmule_AutoLink
push esi
call fcn.00410340
mov ecx, eax
call fcn.0042d8b0
test eax, eax
je 0x410c05
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 0x4ee2c8
mov dword [ebp - 0x1054], eax
call fcn.00410340
mov ecx, eax
call fcn.0042d8b0
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 0x4ee2c8
mov dword [ebp - 0x1054], eax
call fcn.00410340
mov ecx, eax
call fcn.0042d8b0
push eax
push dword [ebp - 0x1054]
call dword [esi + 0x10c]
push 0
push str.UseProxy
mov esi, str.Proxy
push esi
call fcn.00410340
mov ecx, eax
call fcn.0042d8b0
cmp eax, 1
jne 0x410d3f
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 0x410cfa
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 0x410ced
push esi
jmp 0x410cf3
push dword [ebp - 0x1054]
push edi
call dword [eax + 0x88]
mov eax, dword [ebp - 0x1060]
cmp eax, esi
mov byte [ebp - 4], 0xa
je 0x410d0e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1058]
cmp eax, esi
mov byte [ebp - 4], 9
je 0x410d22
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1054]
cmp eax, esi
mov byte [ebp - 4], 7
je 0x411067
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x411067
cmp eax, 2
jne 0x411059
push 0x4ee7c0
push str.ServerProxy
push esi
call fcn.00410340
mov ecx, eax
call fcn.0042d8ec
test eax, eax
jne 0x410d68
mov eax, 0x4ec264
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 0x4ee7c0
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 0x410da4
mov edi, dword [edi + 0x7c]
mov eax, dword [edi]
push 0
push edi
call dword [eax + 0x88]
jmp 0x411047
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 0x411033
push edi
push str.ProxyCount
push esi
call fcn.00410340
mov ecx, eax
call fcn.0042d8b0
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 0x410e7e
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 0x4ec264
lea eax, [ebp - 0x1030]
push eax
push esi
call fcn.00410340
mov ecx, eax
call fcn.0042d8ec
test eax, eax
je 0x410e5f
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 0x410e75
inc dword [ebp - 0x1054]
mov eax, dword [ebp - 0x1054]
cmp eax, dword [ebp - 0x1050]
jl 0x410e17
jmp 0x410e7e
cmp dword [ebp - 0x1054], 0xffffffff
jne 0x410e85
push 0
jmp 0x411021
push dword [ebp - 0x1054]
lea eax, [ebp - 0x1030]
push str.Proxy_dPassword
push eax
call edi
add esp, 0xc
push 0x4ec264
lea eax, [ebp - 0x1030]
push eax
push esi
call fcn.00410340
mov ecx, eax
call fcn.0042d8ec
push eax
lea ecx, [ebp - 0x1050]
call fcn.004014a4
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 0x4ec264
lea eax, [ebp - 0x1030]
push eax
push esi
call fcn.00410340
mov ecx, eax
call fcn.0042d8ec
push eax
lea ecx, [ebp - 0x1050]
call fcn.004014a4
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 0x4ec264
lea eax, [ebp - 0x1030]
push eax
push esi
call fcn.00410340
mov ecx, eax
call fcn.0042d8ec
push eax
lea ecx, [ebp - 0x1050]
call fcn.004014a4
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.00410340
mov ecx, eax
call fcn.0042d8b0
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.00410340
mov ecx, eax
call fcn.0042d8b0
cmp eax, 3
jne 0x411005
push eax
jmp 0x41100f
cmp eax, 1
jne 0x41100d
push eax
jmp 0x41100f
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 0x411047
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 0x411067
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 [0x531cd8], 1
mov byte [ebp - 4], 5
je 0x411082
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 0x4110a6
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.004d1da7
leave
ret