Function at 0x404690
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4606e8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebp
push esi
push edi
mov eax, dword [0x479408]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0041ce2d
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00405100
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4046ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x1eb
push 0x130
push 0
push 0
mov ecx, esi
call fcn.0041d56d
call fcn.00412af1
mov eax, dword [eax + 0xc]
push 0xa7
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esi + 0x74]
call fcn.0041c7ad
push 1
push 0
push 0
push 0
push 0
lea ecx, [esi + 0x124]
call fcn.0041d56d
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x2c]
push 5
push 5
add eax, 1
push eax
add ecx, 1
push ecx
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x2c]
mov edi, eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
add ecx, 1
add eax, 1
push eax
push ecx
push 0xa
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push 2
mov ebp, eax
push ebp
push edi
push edi
call dword [sym.imp.GDI32.dll_CombineRgn]
mov eax, dword [esi + 0x20]
push 1
push edi
push eax
call dword [sym.imp.USER32.dll_SetWindowRgn]
push ebp
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
call ebp
push edi
call ebp
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x1c]
add eax, 1
mov dword [esp + 0x1c], eax
add eax, 0x12c
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
add eax, 6
mov dword [esp + 0x20], eax
add eax, 0xea
push 0x40
mov dword [esp + 0x2c], eax
call sub.gdiplus.dll_GdipAlloc
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x48], 0
je 0x40480c
push eax
call fcn.00402730
jmp 0x40480e
xor eax, eax
push 1
push 0x47af8c
push 0
push 0
push 4
lea edi, [esi + 0x7c]
push 0x227
mov dword [esp + 0x60], 0xffffffff
push edi
mov dword [esi + 0x178], eax
call fcn.0041d629
push 0
push 0
push 0
push 0
push str.http:__www.sopopo.com_rightad.htm
push 0x47af84
push 0
push 0
push 1
push 0x68
push edi
call fcn.0041d629
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
add esp, 0x48
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x24]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, edi
call fcn.0041d56d
push 5
mov ecx, edi
call fcn.0041d5ab
mov edi, dword [esi + 0x178]
cmp byte [edi + 0x30], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x20]
mov dword [edi + 0x24], edx
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ecx
je 0x4048df
cmp dword [edi + 0x28], 1
jbe 0x4048df
cmp dword [edi + 0x14], 0
jne 0x4048df
lea eax, [esp + 0x18]
push eax
push 4
push edi
push 0x4029e0
push 0
push 0
mov dword [esp + 0x30], 0
call fcn.0042a819
add esp, 0x18
test eax, eax
mov dword [edi + 0x14], eax
je 0x4048df
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0
push 0
push 0
push 0
push esi
push 0x4042b0
call fcn.00416b65
mov ecx, dword [esi + 0x20]
push 0
push 0x2dc6c0
push 2
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret