Function at 0x412400
Capabilities:
Resume thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42829b
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
mov eax, 0xc8
cmp ecx, ebx
push edi
mov dword [esi + 0x10], eax
je 0x412459
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push ebx
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
push ebx
mov ecx, esi
call fcn.00411e80
jmp 0x41279b
push 0x64
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
mov dword [esp + 0x3c], ebp
cmp ebp, ebx
mov dword [esp + 0x18], ebx
je 0x412498
push esi
mov ecx, ebp
call fcn.004119f0
mov dword [ebp], 0x42aed4
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x60], 1
jmp 0x41249a
xor ebp, ebp
mov eax, dword [esp + 0x24]
lea edi, [ebp + 8]
push eax
mov ecx, edi
mov dword [esp + 0x1c], 0xffffffff
mov dword [ebp + 4], ebx
call fcn.00426980
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov dword [ebp + 0x20], edx
mov dword [ebp + 0xc], ecx
mov ecx, dword [esp + 0x34]
lea edx, [esi + 4]
mov dword [ebp + 0x10], ebx
push edx
mov dword [ebp + 0x24], eax
mov dword [ebp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp + 0x34], eax
mov eax, dword [esp + 0x30]
cmp eax, 0x5e9
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x38], 1
mov dword [ebp + 0x50], ebx
jne 0x412503
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x412503
mov dword [ebp + 0x58], eax
mov ecx, edi
call sub.MFC42.DLL_CString::TrimLeft
push 0x43382c
mov ecx, edi
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
mov dword [esp + 0x30], eax
jge 0x41253c
cmp ebp, ebx
je 0x41252b
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 1
xor eax, eax
jmp 0x41279b
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x20], 1
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x20]
push str.http
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x4125af
mov ecx, dword [esp + 0x20]
push str.https
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x4125af
cmp ebp, ebx
je 0x4125cf
jmp 0x4125c6
mov ecx, dword [esp + 0x20]
mov eax, dword [edi]
mov ecx, dword [ecx - 8]
mov eax, dword [eax - 8]
add ecx, 4
cmp eax, ecx
jg 0x4125f1
cmp ebp, ebx
je 0x4125cf
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
lea ecx, [esp + 0x20]
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 1
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x41279b
push ebx
push 4
push ebx
push ebx
push ebp
push 0x4127b0
call sub.MFC42.DLL_AfxBeginThread
cmp eax, ebx
mov dword [ebp + 0x5c], eax
jne 0x41263d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebp, ebx
mov dword [esi + 0xc], eax
mov dword [esi + 8], 0xc
je 0x412625
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x41279b
mov dword [eax + 0x28], 1
mov ecx, dword [ebp + 0x5c]
mov eax, dword [ebp + 0x34]
mov edx, dword [ecx + 0x2c]
mov dword [esp + 0x30], eax
mov dword [ebp + 0x40], edx
mov edi, dword [esi + 0x20]
shr eax, 4
xor edx, edx
mov ecx, dword [esi + 0x1c]
div edi
test ecx, ecx
mov dword [esp + 0x28], edi
mov ebx, edx
je 0x41268f
mov eax, dword [ecx + ebx*4]
test eax, eax
je 0x41268b
mov edx, dword [eax + 8]
cmp edx, dword [esp + 0x30]
je 0x412683
mov eax, dword [eax]
test eax, eax
jne 0x412672
jmp 0x41268b
test eax, eax
jne 0x412720
test ecx, ecx
jne 0x4126bb
shl edi, 2
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [esi + 0x1c], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x4126f1
mov ecx, dword [esi + 0x30]
push 0x10
lea edx, [esi + 0x2c]
push ecx
push edx
call sub.MFC42.DLL_CPlex::Create
mov ecx, dword [esi + 0x30]
mov edx, ecx
shl edx, 4
dec ecx
test ecx, ecx
lea eax, [edx + eax - 0xc]
jl 0x4126f1
inc ecx
mov edx, dword [esi + 0x28]
mov dword [eax], edx
mov dword [esi + 0x28], eax
sub eax, 0x10
dec ecx
jne 0x4126e3
mov eax, dword [esi + 0x28]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax]
mov dword [esi + 0x28], ecx
mov ecx, dword [esi + 0x24]
inc ecx
mov dword [esi + 0x24], ecx
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx + ebx*4]
mov dword [eax], edx
mov ecx, dword [esi + 0x1c]
mov dword [ecx + ebx*4], eax
mov dword [eax + 0xc], ebp
mov eax, dword [ebp + 0x5c]
mov edi, dword [ebp + 0x34]
mov edx, dword [eax + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x41278c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], eax
mov dword [esi + 8], 0xc
mov ecx, dword [ebp + 0x5c]
xor edi, edi
cmp ecx, edi
je 0x41275a
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov eax, dword [ebp + 0x60]
mov dword [ebp + 0x5c], edi
cmp eax, edi
mov dword [ebp + 0x40], edi
je 0x41276e
mov ecx, esi
call fcn.004137d0
cmp ebp, edi
je 0x41277b
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x41279b
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString
mov eax, edi
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x20