Function at 0x40c310
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b264
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x47a2f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
push 0x65
call fcn.00412f1f
mov ecx, ebx
call fcn.0040e2ed
push str.closebtn
lea ecx, [ebx + 0x2c]
mov dword [0x47d0bc], eax
call fcn.0040f2b8
push str.minbtn
lea ecx, [ebx + 0x2c]
mov dword [ebx + 0x274], eax
call fcn.0040f2b8
push str.filename
lea ecx, [ebx + 0x2c]
mov dword [ebx + 0x278], eax
call fcn.0040f2b8
push str.progress
lea ecx, [ebx + 0x2c]
mov dword [ebx + 0x27c], eax
call fcn.0040f2b8
push 0x18
mov dword [ebx + 0x280], eax
call fcn.0043fe81
mov edi, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
lea esi, [edi + 4]
mov dword [edi], vtable.CRecvData.0
mov dword [ebp - 0x18], esi
push 0x18
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0043fe81
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0xc], 0
mov byte [ebp - 4], 1
lea esi, [edi + 0x10]
mov dword [edi], vtable.CSocketRecvData.0
mov dword [ebp - 0x18], esi
push 0x1c
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0043fe81
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea eax, [ebx + 0x29c]
cmp dword [eax + 0x14], 0x10
jb 0x40c432
mov eax, dword [eax]
add ebx, 0x284
cmp dword [ebx + 0x14], 0x10
jb 0x40c440
mov ebx, dword [ebx]
push eax
call fcn.00448c18
push 0x48
mov esi, eax
call fcn.0043fe81
mov edi, eax
mov dword [ebp - 0x18], edi
push 0x32
push 0
lea eax, [edi + 4]
mov dword [edi], 0xffffffff
push eax
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
call fcn.004421a0
mov eax, dword [ebp - 0x10]
mov ecx, ebx
add esp, 0x14
mov dword [edi], 1
mov dword [edi + 0x38], esi
mov dword [edi + 0x44], eax
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c4a0
sub ecx, edx
lea eax, [edi + 4]
push ecx
push ebx
push eax
call fcn.004416a0
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x40a3b0
push 0
push 0
call edi
mov esi, dword [0x47d0c4]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x40a4f0
push 0
push 0
call edi
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x40a4e0
push 0
push 0
call edi
mov ecx, dword [0x47d0c0]
mov dword [esi + 0x10], eax
mov eax, dword [0x47d0bc]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x38]
mov eax, dword [ebp - 0x14]
add eax, 0x2cc
push eax
call fcn.00406ce0
mov ecx, dword [0x47d0c0]
add ecx, 0xc
mov dword [ebp - 4], 2
lea eax, [ebp - 0x38]
cmp ecx, eax
je 0x40c548
cmp dword [ebp - 0x24], 0x10
push dword [ebp - 0x28]
cmovae eax, dword [ebp - 0x38]
push eax
call fcn.00406bb0
mov edx, dword [ebp - 0x24]
cmp edx, 0x10
jb 0x40c578
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c56e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c5a6
push edx
push ecx
call fcn.0043feb1
add esp, 8
mov esi, dword [0x47d0c0]
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x402970
push 0
push 0
call edi
mov dword [esi + 8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00444fd9
int3