Function at 0x407320
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 0x10], 0
jne 0x407336
mov eax, 0x80004003
jmp 0x407610
or eax, 0xffffffff
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
cmp dword [ebp + 0xc], 0
jne 0x40734f
mov eax, 0x80070057
jmp 0x407610
mov dword [ebp - 0xc], 0
cmp dword [0x46e248], 1
jne 0x4075ff
lea ecx, [ebp - 0x18]
call fcn.004028b0
lea ecx, [ebp - 0x14]
call fcn.004028b0
lea ecx, [ebp - 0x14]
call fcn.00423d40
push eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [eax + 0x1c]
call edx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4074c4
mov ecx, 0x46e268
call fcn.00403470
test eax, eax
je 0x4073c3
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x46e268
call fcn.00402e30
movzx ecx, al
test ecx, ecx
jne 0x4073c1
mov dword [ebp - 0xc], 1
jmp 0x4073e0
lea edx, [ebp - 0x14]
push edx
mov ecx, 0x46e268
call fcn.0040ca00
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.0040e630
cmp dword [ebp - 0xc], 0
jne 0x4074c4
mov ecx, 0x46e25c
call fcn.00423d40
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [edx + 0x20]
call ecx
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x18]
call fcn.00423d40
push eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [eax + 0x2c]
call edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov word [ebp - 8], ax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [eax + 0x34]
call edx
mov dword [ebp - 0xc], eax
movsx eax, word [ebp - 8]
cmp eax, 0xffffffff
jne 0x40744a
mov byte [ebp - 1], 1
jmp 0x40744e
mov byte [ebp - 1], 0
mov cl, byte [ebp - 1]
mov byte [0x46e250], cl
xor edx, edx
mov word [ebp - 8], dx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [edx + 0x38]
call ecx
mov dword [ebp - 0xc], eax
movsx edx, word [ebp - 8]
cmp edx, 0xffffffff
jne 0x407481
mov byte [ebp - 2], 1
jmp 0x407485
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [0x46e251], al
xor ecx, ecx
mov word [ebp - 8], cx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ecx + 0x3c]
call eax
mov dword [ebp - 0xc], eax
movsx ecx, word [ebp - 8]
cmp ecx, 0xffffffff
jne 0x4074b7
mov byte [ebp - 3], 1
jmp 0x4074bb
mov byte [ebp - 3], 0
mov dl, byte [ebp - 3]
mov byte [0x46e252], dl
cmp dword [ebp - 0xc], 0
jne 0x4075ef
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040c430
push str.DTMInitSchema.xml
lea ecx, [ebp - 0x10]
call fcn.00402ed0
push 1
lea ecx, [ebp - 0x10]
call fcn.0040cbc0
push eax
mov ecx, dword [0x46e24c]
call fcn.004013e0
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040ca00
push str.FDTDataTypesSchema.xml
lea ecx, [ebp - 0x10]
call fcn.00402ed0
push 1
lea ecx, [ebp - 0x10]
call fcn.0040cbc0
push eax
mov ecx, dword [0x46e24c]
call fcn.004013e0
or eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
call fcn.0040ca00
push str.DTMInformationSchema.xml
lea ecx, [ebp - 0x10]
call fcn.00402ed0
push 1
lea ecx, [ebp - 0x10]
call fcn.0040cbc0
push eax
mov ecx, dword [0x46e24c]
call fcn.004013e0
or eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x46e254]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4075e7
push str.GS_file_thread_not_started_
lea ecx, [ebp - 0x24]
call fcn.00402a10
mov ecx, eax
call fcn.0040cbc0
push eax
push str.GS_file_thread
lea ecx, [ebp - 0x20]
call fcn.00402a10
mov ecx, eax
call fcn.0040cbc0
push eax
push str.Global_error
lea ecx, [ebp - 0x1c]
call fcn.00402a10
mov ecx, eax
call fcn.0040cbc0
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [edx + 0x30]
call ecx
lea ecx, [ebp - 0x1c]
call fcn.00402cb0
lea ecx, [ebp - 0x20]
call fcn.00402cb0
lea ecx, [ebp - 0x24]
call fcn.00402cb0
mov dword [ebp - 0xc], 1
lea ecx, [ebp - 0x10]
call fcn.00402cb0
lea ecx, [ebp - 0x14]
call fcn.00402cb0
lea ecx, [ebp - 0x18]
call fcn.00402cb0
cmp dword [ebp - 0xc], 0
je 0x40760d
xor edx, edx
mov eax, dword [ebp + 0x10]
mov word [eax], dx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc