Function at 0x41ed80
Capabilities:
Access peb ldr_data
Get hostname
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x42546e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
lea ebp, [esi + 8]
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_1
lea edi, [esi + 0x18]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x12c], ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x28]
mov byte [esp + 0x12c], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x2c]
mov byte [esp + 0x12c], 2
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x30]
mov byte [esp + 0x12c], 3
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x38]
mov byte [esp + 0x12c], 4
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x44]
mov byte [esp + 0x12c], 5
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x90]
mov byte [esp + 0x12c], 6
call sub.MFC42.DLL_CString::CString_1
mov al, byte [esp + 0x13]
push 0xc
mov byte [esp + 0x130], 7
mov byte [esi + 0x98], al
call sub.MFC42.DLL_operatornew
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa0], ebx
mov cl, byte [esp + 0x17]
push 0xc
mov byte [esp + 0x134], 8
mov byte [esi + 0xa4], cl
call sub.MFC42.DLL_operatornew
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 8
mov dword [esi + 0xa8], eax
mov dword [esi + 0xac], ebx
lea ecx, [esi + 0x4b4]
mov byte [esp + 0x12c], 9
call fcn.0040c230
mov dl, byte [esp + 0x13]
push 0xc
mov byte [esp + 0x130], 0xa
mov byte [esi + 0x4d0], dl
call sub.MFC42.DLL_operatornew
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 4
mov dword [esi + 0x4d4], eax
mov dword [esi + 0x4d8], ebx
mov byte [esp + 0x12c], 0xb
mov dword [esi], 0x426f10
mov dword [esi + 0xc], ebx
push 0x42d1a8
lea ecx, [esi + 0x44]
call sub.MFC42.DLL_CString::operator_2
push 0x42d1a8
mov ecx, edi
mov dword [esi + 0x48], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call sub.MFC42.DLL_CString::operator_2
lea edi, [esi + 0x4c]
mov ecx, 8
xor eax, eax
mov dword [esi + 0x70], ebx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x24]
push 0x100
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x41ef1a
lea ecx, [esp + 0x24]
push ecx
jmp 0x41ef1f
push str.localhost
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esi + 0xb0]
mov ecx, 0x100
xor eax, eax
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], 1
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x80], 2
mov dword [esi + 0x84], 0xa
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
add esp, 8
rep stosd dword es:[edi], eax
mov word [esi + 0x4b0], bx
mov dword [esi + 0x1c], ebx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 1
push str.SaveToLocal
push 0x42ba50
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [esi + 0x20], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push ebx
push str.ProxyType
push 0x42ba50
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [esi + 0x24], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x42d1a8
push str.Username
lea edx, [esp + 0x1c]
push 0x42ba50
push edx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
lea ecx, [esi + 0x28]
mov byte [esp + 0x130], 0xc
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 0xb
call sub.MFC42.DLL_CString::CString
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x42d1a8
push str.Password
lea ecx, [esp + 0x1c]
push 0x42ba50
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
lea ecx, [esi + 0x2c]
mov byte [esp + 0x130], 0xd
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 0xb
call sub.MFC42.DLL_CString::CString
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x42d1a8
push str.ProxyAddress
lea edx, [esp + 0x1c]
push 0x42ba50
push edx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileStringA
mov byte [esp + 0x12c], 0xe
push eax
lea ecx, [esi + 0x30]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 0xb
call sub.MFC42.DLL_CString::CString
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x50
push str.ProxyPort
push 0x42ba50
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [esi + 0x34], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x42d1a8
push str.CodeFileType
lea ecx, [esp + 0x1c]
push 0x42ba50
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
lea ecx, [esi + 0x38]
mov byte [esp + 0x130], 0xf
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 0xb
call sub.MFC42.DLL_CString::CString
push ecx
mov dword [esi + 0x3c], ebx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x42d1a8
mov dword [esi + 0x40], ebx
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x18]
push edx
call fcn.0041e6d0
add esp, 8
push eax
lea ecx, [esi + 0x90]
mov byte [esp + 0x130], 0x10
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 0xb
call sub.MFC42.DLL_CString::CString
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x50
push str.DestPort
push 0x42ba50
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [esi + 4], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x42d1a8
push str.DestUrl
lea ecx, [esp + 0x1c]
push 0x42ba50
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, ebp
mov byte [esp + 0x130], 0x11
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 0xb
call sub.MFC42.DLL_CString::CString
push ebp
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_3
lea edx, [esp + 0x1c]
push 7
mov byte [esp + 0x130], 0x12
push edx
mov ecx, ebp
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x1c]
mov byte [esp + 0x12c], 0x13
call sub.MFC42.DLL_CString::MakeLower
lea eax, [esp + 0x14]
push 8
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x42cd34
push eax
call edi
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
cmp byte [esp + 0x13], bl
je 0x41f22a
lea ecx, [esp + 0x14]
push 8
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x130], 0x14
call sub.MFC42.DLL_CString::operator_1
mov byte [esp + 0x12c], 0x13
lea ecx, [esp + 0x14]
jmp 0x41f28b
lea edx, [esp + 0x14]
push 7
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0x42bf20
push eax
call edi
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
cmp byte [esp + 0x13], bl
je 0x41f290
lea eax, [esp + 0x14]
push 7
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x130], 0x15
call sub.MFC42.DLL_CString::operator_1
mov byte [esp + 0x12c], 0x13
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
push 0x2f
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find_2
cmp eax, ebx
jl 0x41f2d1
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x130], 0x16
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 0x13
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x18]
mov ecx, ebp
push edx
call sub.MFC42.DLL_CString::operator_1
cmp dword [esi + 4], ebx
jne 0x41f2e9
mov dword [esi + 4], 0x50
push 0x24
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x12c], 0x17
je 0x41f313
lea edx, [esi + 0x4b4]
mov ecx, eax
push edx
call fcn.0040c2c0
jmp 0x41f315
xor eax, eax
lea ecx, [esp + 0x1c]
mov dword [esi + 0x4cc], eax
mov byte [esp + 0x12c], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 0xb
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x124]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x120
ret