Function at 0x4d1f60
Capabilities:
Suspend thread

Disassembly:
push 0xffffffffffffffff
push 0x565ccc
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0xbc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7b5c]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x4a4], 0
jne 0x4d2013
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0xc
call fcn.004ff930
add esp, 4
test eax, eax
je 0x4d1fd2
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
jmp 0x4d1fd4
xor eax, eax
mov ecx, dword [esi + 0x49c]
mov edx, dword [esi + 0x498]
push ecx
push edx
mov ecx, eax
mov dword [esi + 0x4a8], eax
call fcn.004d0b00
test eax, eax
jne 0x4d2013
mov ecx, dword [esi + 0x4a8]
test ecx, ecx
je 0x4d2004
push 1
call fcn.004d0710
mov dword [esi + 0x4a8], 0
jmp 0x4d26de
mov eax, dword [esi + 0x3f8]
cmp word [eax], 0
je 0x4d2694
cmp dword [esi + 0x43c], 0
jne 0x4d2694
mov edx, dword [esi + 0x3f8]
mov ecx, dword [esi + 0x3f4]
sub edx, dword [esi + 0x3fc]
push ecx
push 0x64
sar edx, 1
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp eax, dword [esi + 0x444]
je 0x4d20a3
mov dword [esi + 0x444], eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
lea ecx, [esp + 0x40]
push ecx
mov edi, eax
push edi
mov ecx, esi
call fcn.004d0660
mov edx, dword [esi + 0x444]
mov ecx, dword [esi + 0x4a0]
push 0x5790e8
push 0x64
push edx
lea eax, [esp + 0x4c]
push eax
push edi
push ecx
call fcn.0045a520
mov edx, dword [esi + 0x20]
add esp, 0x18
push edi
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esi + 0x428]
mov ecx, dword [esi + 0x3f8]
push eax
push ecx
call fcn.004d0030
push eax
mov dword [esi + 0x3f8], eax
call fcn.004d0230
mov ecx, dword [esi + 0x3f8]
mov edx, ecx
sub edx, dword [esi + 0x3fc]
add esp, 0xc
sar edx, 1
cmp edx, dword [esi + 0x3f4]
jge 0x4d2694
xor edi, edi
cmp ecx, eax
jae 0x4d2108
cmp edi, 0x3f
jge 0x4d2108
mov ecx, dword [esi + 0x3f8]
mov dx, word [ecx]
add ecx, 2
mov word [esp + edi*2 + 0x50], dx
inc edi
mov dword [esi + 0x3f8], ecx
cmp ecx, eax
jb 0x4d20e7
xor eax, eax
mov ecx, 0x27
mov word [esp + edi*2 + 0x50], ax
cmp cx, word [esp + 0x50]
jne 0x4d2131
push edi
lea edx, [esp + 0x56]
push edx
lea eax, [esp + 0x58]
push 0x40
push eax
call fcn.0044c530
add esp, 0x10
dec edi
cmp edi, 1
jle 0x4d2684
mov ecx, 0x27
cmp cx, word [esp + edi*2 + 0x4e]
jne 0x4d2155
dec edi
xor edx, edx
add dword [esi + 0x3f8], 0xfffffffe
mov word [esp + edi*2 + 0x50], dx
cmp edi, 1
jle 0x4d2684
cmp dword [esi + 0x438], 0
je 0x4d218b
xor eax, eax
test edi, edi
jle 0x4d218b
lea ecx, [ecx]
mov ecx, 0xff
cmp word [esp + eax*2 + 0x50], cx
ja 0x4d2183
inc eax
cmp eax, edi
jl 0x4d2170
jmp 0x4d218b
cmp eax, edi
jl 0x4d2684
inc dword [esi + 0x3e8]
lea edx, [esp + 0x50]
push edx
mov ecx, esi
call fcn.004d0310
mov ebx, eax
test ebx, ebx
je 0x4d2219
mov eax, dword [esi + 0x3f0]
add eax, eax
sub eax, dword [esi + 0x3fc]
add eax, dword [esi + 0x3f8]
sar eax, 1
sub eax, edi
add eax, dword [esi + 0x440]
lea ecx, [eax + edi]
push ecx
push eax
mov eax, dword [esi + 0x408]
push 0x437
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d21e0
mov ecx, dword [esi + 0x408]
push ebx
push 2
sub eax, edx
push 0xc2
sar eax, 1
push ecx
mov ebp, eax
call dword [sym.imp.USER32.dll_SendMessageW]
inc dword [esi + 0x3ec]
sub ebp, edi
add dword [esi + 0x440], ebp
jmp 0x4d2684
cmp dword [esi + 0x42c], 0
je 0x4d234b
mov edx, dword [esi + 0x3f8]
movzx eax, word [edx]
cmp ax, 0x40
je 0x4d22e1
cmp ax, 0x3a
jne 0x4d234b
lea eax, [esp + 0x50]
push str.http
push eax
call fcn.0054022e
add esp, 8
test eax, eax
je 0x4d22e1
lea ecx, [esp + 0x50]
push str.https
push ecx
call fcn.0054022e
add esp, 8
test eax, eax
je 0x4d22e1
lea edx, [esp + 0x50]
push 0x57e370
push edx
call fcn.0054022e
add esp, 8
test eax, eax
je 0x4d22e1
lea eax, [esp + 0x50]
push str.mailto
push eax
call fcn.0054022e
add esp, 8
test eax, eax
je 0x4d22e1
lea ecx, [esp + 0x50]
push str.news
push ecx
call fcn.0054022e
add esp, 8
test eax, eax
je 0x4d22e1
lea edx, [esp + 0x50]
push str.snews
push edx
call fcn.0054022e
add esp, 8
test eax, eax
je 0x4d22e1
lea eax, [esp + 0x50]
push str.gopher
push eax
call fcn.0054022e
add esp, 8
test eax, eax
jne 0x4d234b
add dword [esi + 0x3f8], 2
mov ecx, dword [esi + 0x3f8]
cmp word [ecx], 0
je 0x4d2684
jmp 0x4d2300
movzx eax, word [ecx]
cmp ax, 0x20
je 0x4d2684
cmp ax, 9
je 0x4d2684
cmp ax, 0x3c
je 0x4d2684
cmp ax, 0x3e
je 0x4d2684
cmp ax, 0x22
je 0x4d2684
add ecx, 2
mov edx, ecx
mov dword [esi + 0x3f8], ecx
cmp word [edx], 0
jne 0x4d2300
jmp 0x4d2684
lea ecx, [esp + 0x2c]
call fcn.00510966
mov ebp, dword [esi + 0x3f0]
add ebp, ebp
sub ebp, dword [esi + 0x3fc]
lea ecx, [esp + 0x28]
add ebp, dword [esi + 0x3f8]
push ecx
sar ebp, 1
add ebp, dword [esi + 0x440]
lea edx, [esp + 0x54]
sub ebp, edi
xor ebx, ebx
lea eax, [edi + ebp]
push edx
mov ecx, esi
mov dword [esp + 0xe4], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
call fcn.004d0380
test eax, eax
jne 0x4d2670
call fcn.005089db
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x4d270c
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x28], 0
lea eax, [esp + 0x50]
mov byte [esp + 0xdc], 1
mov dword [esp + 0x18], eax
je 0x4d2412
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d23e1
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x28]
call fcn.00401e40
lea ecx, [esp + 0x20]
call fcn.004d1690
mov ebx, dword [esp + 0x20]
mov eax, ebx
mov dword [esp + 0x18], ebx
mov ecx, dword [esi + 0x4a4]
test ecx, ecx
je 0x4d2448
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.004d1c00
test eax, eax
je 0x4d248d
lea eax, [ebx - 0x10]
mov byte [esp + 0xdc], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4d2664
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esi + 0x4a8]
push eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], edi
call fcn.004d0df0
test eax, eax
je 0x4d247b
lea eax, [ebx - 0x10]
jmp 0x4d264f
add ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add ecx, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ecx
lea edx, [esp + 0x50]
push edx
lea ecx, [esi + 0x340]
call fcn.00506fe6
mov eax, dword [esi + 0x30c]
push 0
push 0
push 0x184
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x34]
xor ebx, ebx
test eax, eax
jle 0x4d258d
test ebx, ebx
jl 0x4d2720
cmp ebx, eax
jge 0x4d2720
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + ebx*4]
sub eax, 0x10
push eax
call fcn.004045b0
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x14], edi
cmp dword [esp + 0x28], 0
mov byte [esp + 0xdc], 2
je 0x4d2547
mov ebp, dword [edi - 0xc]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, ebp
or eax, ecx
jge 0x4d251c
push ebp
lea ecx, [esp + 0x18]
call fcn.00401bd0
mov edi, dword [esp + 0x14]
lea edx, [ebp + 1]
push edx
push edi
call fcn.005425ca
add esp, 8
test ebp, ebp
jl 0x4d2716
cmp ebp, dword [edi - 8]
jg 0x4d2716
mov dword [edi - 0xc], ebp
xor eax, eax
mov word [edi + ebp*2], ax
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esi + 0x30c]
push edi
push 0
push 0x180
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [edi - 0x10]
mov byte [esp + 0xdc], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d2580
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
inc ebx
cmp ebx, eax
jl 0x4d24c1
mov ecx, esi
call fcn.004d1700
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x408]
push ecx
push ebp
push 0x437
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x400]
mov dword [esi + 0x420], 1
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp word [0x5eded8], 0
je 0x4d2648
mov ecx, dword [esi + 0x4a4]
test ecx, ecx
je 0x4d2604
cmp dword [0x5eded0], 0
mov edx, dword [esp + 0x18]
push 0
push 0x69
push edx
je 0x4d25f8
movzx eax, word [ecx + 0xc]
push eax
call fcn.004d1ea0
jmp 0x4d263f
movzx eax, word [ecx + 8]
push eax
call fcn.004d1ea0
jmp 0x4d263f
cmp dword [0x5eded0], 0
mov eax, dword [esi + 0x4a8]
je 0x4d2629
cmp dword [eax + 8], 0
je 0x4d263f
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
jmp 0x4d263d
cmp dword [eax + 8], 0
je 0x4d263f
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
xor ecx, ecx
mov word [0x5eded8], cx
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov byte [esp + 0xdc], 0
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d2670
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0xdc], 0xffffffff
call fcn.00510c42
mov ecx, dword [esi + 0x3f8]
cmp word [ecx], 0
jne 0x4d2023
mov esi, dword [esi + 0x4a8]
test esi, esi
je 0x4d26e4
mov dword [esp + 0x24], esi
mov eax, dword [esi + 4]
mov dword [esp + 0xdc], 3
test eax, eax
je 0x4d26bc
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esi]
mov dword [esp + 0xdc], 0xffffffff
test eax, eax
je 0x4d26d5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push esi
call fcn.004ff96a
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.0053f73f
add esp, 0xcc
ret
push 0x80004005
call fcn.00401340
push 0x80070057
call fcn.00401340
call fcn.00507f95
int3