Function at 0x409790
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47c488
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4985d0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
push 0x38
call fcn.00425b4b
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x4097d6
call fcn.004254a0
jmp 0x4097d8
xor eax, eax
mov dword [esi + 0xbf8], eax
mov ecx, dword [esi + 0xc20]
sub ecx, dword [esi + 0xc18]
mov edx, dword [esi + 0xc1c]
sub edx, dword [esi + 0xc14]
mov edi, dword [0x49dcd4]
push ecx
mov ecx, dword [esi + 0xc18]
push edx
mov edx, dword [esi + 0xc14]
push ecx
mov ecx, dword [esi + 0x20]
push edx
push ecx
call fcn.00425660
mov edx, dword [esi + 0xbf8]
push str.http:__soft.replays.net_dota_
push edx
call fcn.00425510
mov eax, dword [esi + 0xbf8]
mov eax, dword [eax + 0x30]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x38
call fcn.00425b4b
add esp, 4
cmp eax, ebx
je 0x40984d
call fcn.004254a0
jmp 0x40984f
xor eax, eax
mov dword [esi + 0xbfc], eax
mov ecx, dword [esi + 0xc20]
sub ecx, dword [esi + 0xc18]
mov edx, dword [esi + 0xc1c]
sub edx, dword [esi + 0xc14]
mov edi, dword [0x49dcd4]
push ecx
mov ecx, dword [esi + 0xc18]
push edx
mov edx, dword [esi + 0xc14]
push ecx
mov ecx, dword [esi + 0x20]
push edx
push ecx
call fcn.00425660
push 0x38
call fcn.00425b4b
add esp, 4
cmp eax, ebx
je 0x4098a1
call fcn.004254a0
jmp 0x4098a3
xor eax, eax
mov dword [esi + 0xc00], eax
mov edx, dword [esi + 0xc20]
sub edx, dword [esi + 0xc18]
mov ecx, dword [esi + 0xc1c]
sub ecx, dword [esi + 0xc14]
mov edi, dword [0x49dcd4]
push edx
mov edx, dword [esi + 0xc18]
push ecx
mov ecx, dword [esi + 0xc14]
push edx
mov edx, dword [esi + 0x20]
push ecx
push edx
call fcn.00425660
push 0x38
call fcn.00425b4b
add esp, 4
cmp eax, ebx
je 0x4098f5
call fcn.004254a0
jmp 0x4098f7
xor eax, eax
mov dword [esi + 0xc04], eax
mov ecx, dword [esi + 0xc20]
sub ecx, dword [esi + 0xc18]
mov edx, dword [esi + 0xc1c]
sub edx, dword [esi + 0xc14]
mov edi, dword [0x49dcd4]
push ecx
mov ecx, dword [esi + 0xc18]
push edx
mov edx, dword [esi + 0xc14]
push ecx
mov ecx, dword [esi + 0x20]
push edx
push ecx
call fcn.00425660
push 0x38
call fcn.00425b4b
add esp, 4
cmp eax, ebx
je 0x409949
call fcn.004254a0
jmp 0x40994b
xor eax, eax
mov dword [esi + 0xc08], eax
mov edx, dword [esi + 0xc20]
sub edx, dword [esi + 0xc18]
mov ecx, dword [esi + 0xc1c]
sub ecx, dword [esi + 0xc14]
mov edi, dword [0x49dcd4]
push edx
mov edx, dword [esi + 0xc18]
push ecx
mov ecx, dword [esi + 0xc14]
push edx
mov edx, dword [esi + 0x20]
push ecx
push edx
call fcn.00425660
push 0x38
call fcn.00425b4b
add esp, 4
cmp eax, ebx
je 0x40999d
call fcn.004254a0
jmp 0x40999f
xor eax, eax
mov dword [esi + 0xc0c], eax
mov ecx, dword [esi + 0xc20]
sub ecx, dword [esi + 0xc18]
mov edx, dword [esi + 0xc1c]
sub edx, dword [esi + 0xc14]
mov edi, dword [0x49dcd4]
push ecx
mov ecx, dword [esi + 0xc18]
push edx
mov edx, dword [esi + 0xc14]
push ecx
mov ecx, dword [esi + 0x20]
push edx
push ecx
call fcn.00425660
push 0x38
call fcn.00425b4b
add esp, 4
cmp eax, ebx
je 0x4099f1
call fcn.004254a0
jmp 0x4099f3
xor eax, eax
mov dword [esi + 0xc10], eax
mov edx, dword [esi + 0xc20]
sub edx, dword [esi + 0xc18]
mov ecx, dword [esi + 0xc1c]
sub ecx, dword [esi + 0xc14]
mov edi, dword [0x49dcd4]
push edx
mov edx, dword [esi + 0xc18]
push ecx
mov ecx, dword [esi + 0xc14]
push edx
mov edx, dword [esi + 0x20]
push ecx
push edx
call fcn.00425660
mov eax, dword [esi + 0x548]
mov eax, dword [eax + 0x54]
push ebx
push 0xce
push esi
lea edx, [esp + 0x38]
push edx
push 0x40000000
lea ecx, [esi + 0x548]
push 0x4857f2
push str.Replays_GameBox_Wnd
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call eax
mov edx, dword [esi + 0x164]
mov edx, dword [edx + 0x58]
push ebx
push ebx
push esi
lea eax, [esp + 0x38]
push eax
push 0xc0000000
push 0x4857f2
lea ecx, [esi + 0x164]
push str.Replays_GameBox_Wnd
push 0x88
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], 0x78
mov dword [esp + 0x58], 0x31
call edx
lea eax, [esp + 0x20]
push 0x485c20
push eax
mov ecx, 0x49dd80
call fcn.0040a980
push str._Beta
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x5c], ebx
call fcn.0040a8a0
add esp, 0x14
lea ecx, [esi + 0x2bc]
push eax
mov byte [esp + 0x4c], 1
call fcn.0040d940
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409b11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409b39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 8
call fcn.00425b4b
add esp, 4
cmp eax, ebx
je 0x409b52
mov dword [eax + 4], ebx
mov dword [eax], vtable.CFont.0
jmp 0x409b54
xor eax, eax
push 0x3c
lea edi, [esi + 0x2c8]
push ebx
push edi
mov dword [esi + 0x2b0], eax
call fcn.0044bb00
lea eax, [esi + 0x2e4]
add esp, 0xc
mov dword [edi], 0xd
mov dword [esi + 0x2d8], 0xc8
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x409b85
mov ecx, dword [0x4854f8]
mov dword [eax], ecx
mov dl, byte [0x4854fc]
mov byte [eax + 4], dl
mov ebp, dword [esi + 0x2b0]
push edi
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov ecx, ebp
call fcn.0042be9f
push 8
lea ecx, [esi + 0x2c0]
push 0x485c2c
call fcn.00403ef0
push 8
call fcn.00425b4b
add esp, 4
cmp eax, ebx
je 0x409be0
mov dword [eax + 4], ebx
mov dword [eax], vtable.CFont.0
jmp 0x409be2
xor eax, eax
push 0x3c
lea edi, [esi + 0x304]
push ebx
push edi
mov dword [esi + 0x2b4], eax
call fcn.0044bb00
lea eax, [esi + 0x320]
add esp, 0xc
mov byte [esi + 0x319], 1
mov dword [edi], 0xd
mov dword [esi + 0x314], 0xc8
add eax, 0xffffffff
lea ebx, [ebx]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x409c20
mov ecx, dword [0x4854f8]
mov dword [eax], ecx
mov dl, byte [0x4854fc]
mov byte [eax + 4], dl
mov ebp, dword [esi + 0x2b4]
push edi
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov ecx, ebp
call fcn.0042be9f
push 0x16
lea ecx, [esi + 0x2c4]
push str.Powered_By_Replays.Net
call fcn.00403ef0
push 8
call fcn.00425b4b
add esp, 4
cmp eax, ebx
je 0x409c7b
mov dword [eax + 4], ebx
mov dword [eax], vtable.CFont.0
jmp 0x409c7d
xor eax, eax
push 0x3c
lea edi, [esi + 0x340]
push ebx
push edi
mov dword [esi + 0x2b8], eax
call fcn.0044bb00
lea eax, [esi + 0x35c]
add esp, 0xc
mov dword [edi], 0xc
mov dword [esi + 0x350], 0x2fc
add eax, 0xffffffff
mov edi, edi
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x409cb0
mov ecx, dword [0x4854f8]
mov dword [eax], ecx
mov dl, byte [0x4854fc]
mov byte [eax + 4], dl
mov ebp, dword [esi + 0x2b8]
push edi
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov ecx, ebp
call fcn.0042be9f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.004286c3
mov edx, dword [eax + 0x20]
lea ecx, [esi + 0x230]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push ebx
push esi
push 0x4096c0
push ebx
push ebx
call edi
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.CloseSubVedio
mov dword [esi + 0xbc0], eax
call fcn.00403900
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.SOFTWAREReplays_GameBox_App_
mov dword [esp + 0x54], 2
call fcn.00403900
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x54], 0xffffffff
call fcn.0041d8a0
mov ecx, dword [esp + 0x24]
add esp, 0xc
push str.TRUE
push ecx
call fcn.00449582
add esp, 8
test eax, eax
je 0x409d7c
push ebx
push ebx
push ebx
push 0x4051d0
push ebx
push ebx
call edi
mov dword [esi + 0xbbc], eax
mov edx, dword [esi + 0x20]
push ebx
push 0x1f4
push 1
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409dae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret