Function at 0x438c30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532a62
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x58a06c]
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 esi, ecx
mov dword [ebp - 0x48], esi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x44], ebx
test ecx, ecx
je 0x43900b
test eax, eax
je 0x43900b
cmp ebx, 0x18
je 0x438c95
cmp ebx, 8
je 0x438c95
cmp ebx, 0x20
jne 0x43900b
cmp dword [esi + 0x18], 0
jl 0x43900b
cmp dword [esi + 0x20], 0
je 0x43900b
mov eax, dword [ebp + 0x14]
xor ecx, ecx
cdq
mov edi, eax
mov eax, ebx
imul eax, dword [ebp + 0x10]
xor edi, edx
sub edi, edx
mov dword [ebp - 0x4c], edi
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
mov dword [ebp - 0x64], eax
mov eax, ebx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x64]
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005089f8
mov edi, eax
add esp, 4
mov dword [ebp - 0x60], edi
test edi, edi
je 0x43900b
cmp byte [esi + 4], 0
je 0x438f6d
mov ecx, dword [esi + 8]
cmp ecx, 1
jle 0x438f6d
mov edi, dword [ebp - 0x4c]
mov edx, 0x2c
cmp ecx, edi
cmovl edi, ecx
xor ecx, ecx
mov eax, edi
mov dword [ebp - 0x50], edi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.005008e0
add esp, 4
mov dword [ebp - 0x68], eax
push sym.XinZhiZao.exe_public:_void___thiscall_itas109::CSerialPortInfo::destructor_void_
push sym.XinZhiZao.exe_public:_void___thiscall_itas109::CSerialPortInfo::constructor_void_
push edi
mov dword [ebp - 4], 0
mov dword [eax], edi
add eax, 4
push 0x2c
push eax
mov dword [ebp - 0x5c], eax
call fcn.005008e9
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005008e0
add esp, 4
mov dword [ebp - 0x58], 0
mov ebx, eax
test edi, edi
jle 0x438f00
cmp dword [ebp - 0x44], 8
mov ecx, fcn.004390e0
mov eax, fcn.00439220
mov dword [ebp - 0x54], 0
cmove eax, ecx
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
cdq
idiv edi
add ecx, 0xc
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], ecx
nop dword [eax]
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x4c]
mov dword [ecx - 4], eax
mov eax, dword [ebp - 0x60]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x64]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x74]
mov dword [ecx + 0x18], eax
mov dword [ecx + 8], edx
mov eax, dword [esi + 0x18]
mov dword [ecx - 0xc], eax
mov eax, dword [esi + 0x20]
lea esi, [edi - 1]
mov dword [ecx - 8], eax
mov eax, dword [ebp - 0x54]
mov dword [ecx + 0xc], eax
add eax, dword [ebp - 0x6c]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x58], esi
jne 0x438e18
mov dword [ecx + 0x10], edx
jmp 0x438e1b
mov dword [ecx + 0x10], eax
lea eax, [ebp - 0x14]
mov byte [ecx + 0x1c], 1
push eax
push 0
lea eax, [ecx - 0xc]
push eax
push dword [ebp - 0x50]
push 0x200
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x68]
mov esi, dword [ebp - 0x48]
add ecx, 0x2c
mov dword [ebp - 0x68], ecx
mov dword [ebx + edx*4], eax
inc edx
mov dword [ebp - 0x58], edx
cmp edx, edi
jl 0x438dd0
push 0xffffffffffffffff
push 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor esi, esi
push dword [ebx + esi*4]
call dword [0x53e34c]
inc esi
cmp esi, edi
jl 0x438e65
mov ecx, dword [ebp - 0x48]
push 0x32
push 0x64
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp dword [ebp - 0x44], 8
mov ecx, fcn.00439220
mov esi, dword [ebp - 0x5c]
mov eax, fcn.004390e0
cmove ecx, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x50], ecx
add esi, 0xc
mov eax, dword [ebp - 0x60]
mov dword [esi - 4], eax
mov eax, dword [ebp - 0x78]
mov dword [esi], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [esi - 0xc]
mov byte [esi + 0x1c], 0
push eax
push ecx
push 0x200
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x44]
lea esi, [esi + 0x2c]
mov dword [ebx + ecx*4], eax
inc ecx
mov dword [ebp - 0x44], ecx
cmp ecx, edi
mov ecx, dword [ebp - 0x50]
jl 0x438ea0
push 0xffffffffffffffff
push 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor esi, esi
nop dword [eax]
push dword [ebx + esi*4]
call dword [0x53e34c]
inc esi
cmp esi, edi
jl 0x438ef0
jmp 0x438f22
mov esi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0xffffffffffffffff
push 1
push ebx
push edi
call esi
mov ecx, dword [ebp - 0x48]
push 0x32
push 0x64
mov eax, dword [ecx]
call dword [eax + 0xc]
push 0xffffffffffffffff
push 1
push ebx
push edi
call esi
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x438f59
push sym.XinZhiZao.exe_public:_void___thiscall_itas109::CSerialPortInfo::destructor_void_
lea esi, [eax - 4]
mov dword [ebp - 4], 1
push dword [esi]
push 0x2c
push eax
call fcn.005005c0
imul eax, dword [esi], 0x2c
add eax, 4
push eax
push esi
call fcn.005006d5
add esp, 8
mov dword [ebp - 4], 0xffffffff
push ebx
call fcn.005005bb
mov esi, dword [ebp - 0x48]
add esp, 4
mov edi, dword [ebp - 0x60]
jmp 0x438ff3
mov ecx, dword [ebp - 0x4c]
xor eax, eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], ecx
mov byte [ebp - 0x18], 1
push eax
cmp ebx, 8
jne 0x438fc1
call fcn.004390e0
jmp 0x438fc6
call fcn.00439220
mov eax, dword [esi]
mov ecx, esi
push 0x32
push 0x64
call dword [eax + 0xc]
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x18], 0
push eax
cmp ebx, 8
jne 0x438fee
call fcn.004390e0
jmp 0x438ff3
call fcn.00439220
push edi
call fcn.00508951
mov eax, dword [esi]
add esp, 4
mov ecx, esi
push 0x64
push 0x64
call dword [eax + 0xc]
mov al, 1
jmp 0x43900d
xor al, al
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.005000f2
mov esp, ebp
pop ebp
ret 0x14