Function at 0x4738d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a470
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], ebx
cmp edi, ebx
jne 0x47392e
push ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push 0x4ab248
mov ecx, esi
mov word [esi], ax
call fcn.004027c0
jmp 0x473b2e
xor ecx, ecx
mov eax, edi
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x473943
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x48]
call fcn.004027c0
push 0xc
mov dword [ebp - 4], ebx
call fcn.004978c0
add esp, 4
cmp eax, ebx
je 0x473979
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov esi, eax
jmp 0x47397b
xor esi, esi
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], eax
xor edx, edx
mov eax, edi
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4739a0
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.004027c0
mov edi, dword [ebp - 0x1c]
inc edi
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.00497652
lea ecx, [edi + edi]
push ecx
push ebx
push eax
mov dword [esi + 4], eax
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x2c]
add esp, 0x10
cmp dword [ebp - 0x18], 8
jae 0x4739f6
lea eax, [ebp - 0x2c]
mov edx, dword [esi + 4]
push eax
push edi
push edx
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
push ebx
push esi
push 0x4737d0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
jne 0x473a71
mov esi, dword [ebp - 0x4c]
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edx, [ebp - 0x48]
mov word [esi], cx
push edx
mov ecx, esi
call fcn.004085c0
mov edi, 8
cmp dword [ebp - 0x18], edi
jb 0x473a4f
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], edi
jb 0x473b2e
mov edx, dword [ebp - 0x48]
push edx
jmp 0x473b26
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov eax, dword [esi]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi]
push ecx
call edi
mov edx, dword [esi + 8]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x473a92
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x48]
call fcn.004027c0
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x473abe
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x473ad1
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 8], ebx
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp - 0x4c]
add esp, 4
lea eax, [ebp - 0x48]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov word [esi], dx
call fcn.004085c0
mov edi, 8
cmp dword [ebp - 0x18], edi
jb 0x473b0d
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x34], edi
jb 0x473b2e
mov eax, dword [ebp - 0x48]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret