Function at 0x40f980
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d6a8
mov eax, dword fs:[0]
push eax
sub esp, 0x5d4
mov eax, dword [0x48de14]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5d4], ecx
mov ecx, dword [ebp - 0x5d4]
call fcn.00438680
mov ecx, dword [ebp - 0x5d4]
call fcn.0040f7e0
mov eax, dword [ebp - 0x5d4]
cmp dword [eax + 0x488], 0
je 0x40f9fc
push 0x474300
mov ecx, dword [ebp - 0x5d4]
mov edx, dword [ecx + 0x488]
mov eax, dword [ebp - 0x5d4]
mov ecx, dword [eax + 0x488]
mov edx, dword [edx]
mov eax, dword [edx + 0x2c]
call eax
mov cl, byte [0x47415e]
mov byte [ebp - 0x5bc], cl
push 0x7f
push 0
lea edx, [ebp - 0x5bb]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x5c0], 0x80
lea eax, [ebp - 0x5c0]
push eax
lea ecx, [ebp - 0x5bc]
push ecx
call sub.HSChipServerChat.dll_DEV_GetCDRomLetter
add esp, 8
mov dword [ebp - 0x5c4], eax
cmp dword [ebp - 0x5c4], 0
jne 0x40fa5e
mov edx, dword [ebp - 0x5d4]
mov al, byte [ebp - 0x5bc]
mov byte [edx + 0x494], al
jmp 0x40fa8a
push 0
push 0x474310
mov ecx, dword [ebp - 0x5d4]
call fcn.0040f710
push 1
mov ecx, dword [ebp - 0x5d4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x5d4]
mov eax, dword [edx + 4]
call eax
jmp 0x40fcac
mov dword [ebp - 0x138], 0
lea ecx, [ebp - 0x138]
push ecx
push 0
mov edx, dword [ebp - 0x5d4]
push edx
push 0x410f80
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x5c8], eax
mov byte [ebp - 0x53c], 0
push 0x3ff
push 0
lea eax, [ebp - 0x53b]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x5c0], 0x400
lea ecx, [ebp - 0x5c0]
push ecx
lea edx, [ebp - 0x53c]
push edx
mov eax, dword [ebp - 0x5d4]
movzx ecx, byte [eax + 0x494]
push ecx
call sub.HSChipServerChat.dll_DEV_GetSerialNumber
add esp, 0xc
mov dword [ebp - 0x5c4], eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x5d0], esp
lea edx, [ebp - 0x53c]
push edx
call fcn.00401440
mov dword [ebp - 0x5d8], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00401090
add esp, 0x20
mov dword [ebp - 0x5dc], eax
mov ecx, dword [ebp - 0x5dc]
mov dword [ebp - 0x5e0], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x5e0]
call fcn.004016d0
push eax
mov edx, dword [ebp - 0x5d4]
mov eax, dword [edx + 0x378]
mov ecx, dword [ebp - 0x5d4]
mov ecx, dword [ecx + 0x378]
mov edx, dword [eax]
mov eax, dword [edx + 0x2c]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401550
lea ecx, [ebp - 0x134]
push ecx
mov ecx, dword [ebp - 0x5d4]
call fcn.0040fcd0
mov edi, dword [ebp - 0x5d4]
add edi, 0x384
mov ecx, 0x41
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x5cc], 0
lea edx, [ebp - 0x5cc]
push edx
mov eax, dword [ebp - 0x5d4]
movzx ecx, byte [eax + 0x494]
push ecx
call sub.HSChipServerChat.dll_DEV_ReadAutoLogin
add esp, 8
cmp dword [ebp - 0x5cc], 0
je 0x40fc91
push 0
mov edx, dword [ebp - 0x5d4]
mov eax, dword [edx + 0x37c]
mov ecx, dword [ebp - 0x5d4]
mov ecx, dword [ecx + 0x37c]
mov edx, dword [eax]
mov eax, dword [edx + 0xe0]
call eax
push 0x474320
mov ecx, dword [ebp - 0x5d4]
mov edx, dword [ecx + 0x380]
mov eax, dword [ebp - 0x5d4]
mov ecx, dword [eax + 0x380]
mov edx, dword [edx]
mov eax, dword [edx + 0x2c]
call eax
push 0
mov ecx, dword [ebp - 0x5d4]
mov edx, dword [ecx + 0x380]
mov eax, dword [ebp - 0x5d4]
mov ecx, dword [eax + 0x380]
mov edx, dword [edx]
mov eax, dword [edx + 0xec]
call eax
mov ecx, dword [ebp - 0x5d4]
mov edx, dword [ecx + 0x484]
sub edx, 1
mov eax, dword [ebp - 0x5d4]
mov dword [eax + 0x484], edx
mov esi, dword [ebp - 0x5d4]
add esi, 0x384
sub esp, 0x104
mov ecx, 0x41
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x5d4]
call fcn.0040fe90
push 0
push 0x5dc
push 1
mov ecx, dword [ebp - 0x5d4]
call fcn.0043a09b
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046bbe4
mov esp, ebp
pop ebp
ret