Function at 0x4072c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x421228
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x42d030]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea edi, [esi + 0x38]
push 3
push edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 3
je 0x40750b
cmp eax, 2
je 0x40750b
cmp eax, 1
jne 0x407368
call fcn.00402150
push eax
mov edx, 4
call fcn.00419930
test eax, eax
je 0x407353
push str.CAsynXFDownload:_Init_failed_because_of_Status_Stoping
push str.XFDownload::CAsynXFDownload::Init
push 0xbd
push str.D:jenkins_TrunkworkspaceMainline_SourceJob_2qqpcmgr_projFTHardwareQMPublicExeQMDLDownloadEngineengine_xfAsynXFDownload.cpp
push 0
push 4
push 0
call fcn.00402150
push eax
call fcn.00419af0
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xc], 0
je 0x4073db
call fcn.00406fd0
test eax, eax
jne 0x4073db
push eax
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00402150
push eax
mov edx, 2
call fcn.00419930
test eax, eax
je 0x4073c6
push esi
push str.CAsynXFDownload:_InitCallbackWindow_failed:__u
push str.XFDownload::CAsynXFDownload::Init
push 0xc9
push str.D:jenkins_TrunkworkspaceMainline_SourceJob_2qqpcmgr_projFTHardwareQMPublicExeQMDLDownloadEngineengine_xfAsynXFDownload.cpp
push esi
push 2
push 0x42e2b4
call fcn.00402150
push eax
call fcn.00419af0
add esp, 0x24
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
push eax
push 0
push esi
push 0x408250
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
test eax, eax
mov dword [esi + 0x2c], eax
jne 0x407442
push eax
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00402150
push eax
mov edx, 2
call fcn.00419930
test eax, eax
je 0x4073c6
push esi
push str.CAsynXFDownload:_Create_thread_failed:__u
push str.XFDownload::CAsynXFDownload::Init
push 0xd4
push str.D:jenkins_TrunkworkspaceMainline_SourceJob_2qqpcmgr_projFTHardwareQMPublicExeQMDLDownloadEngineengine_xfAsynXFDownload.cpp
push esi
push 2
push 0x42e2b8
jmp 0x4073b8
lea ebx, [esi + 0x14]
push ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0x1c]
lea edi, [esi + 0x78]
mov dword [esp + 0x30], 0
push ecx
mov eax, edi
mov dword [esp + 0x20], 1
call fcn.00408750
mov edx, dword [esi + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x60]
test eax, eax
je 0x4074a9
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
mov eax, edi
mov dword [esp + 0x20], 8
call fcn.00408750
mov ecx, dword [esi + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esi + 0x60], 0
push ebx
mov dword [esp + 0x34], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
add esi, 0x3c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call esi
mov edx, dword [esp + 0x10]
push 2
push edx
call esi
call fcn.00402150
push eax
mov edx, 4
call fcn.00419930
test eax, eax
je 0x40750b
push str.CAsynXFDownload:_Init_success_
push str.XFDownload::CAsynXFDownload::Init
push 0xeb
push str.D:jenkins_TrunkworkspaceMainline_SourceJob_2qqpcmgr_projFTHardwareQMPublicExeQMDLDownloadEngineengine_xfAsynXFDownload.cpp
push 0
push 4
push 0
call fcn.00402150
push eax
call fcn.00419af0
add esp, 0x20
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret