Function at 0x41c298
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov dword [ebp - 0x48], ecx
call fcn.0041d63e
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
mov ecx, dword [ebp - 0x48]
add ecx, 0x64
call fcn.00402550
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x45bc38], eax
cmp dword [0x45bc38], 0
jb 0x41c2e4
cmp dword [0x45bc38], 0xffffffff
jne 0x41c301
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
call fcn.0041d2a3
add esp, 4
xor ax, ax
jmp 0x41cdfa
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [0x45bc38]
push edx
call dword [sym.imp.KERNEL32.dll_GetCommState]
mov dword [ebp - 0x1c], 0x1c
push 0x45634c
push 0x4b00
push str.BAUD
push 0x456360
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x18], eax
push 0x45636c
push 1
push str.BINARY
push 0x456380
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
and eax, 1
mov ecx, dword [ebp - 0x14]
and ecx, 0xfffffffe
or ecx, eax
mov dword [ebp - 0x14], ecx
push 0x45638c
push 0
push str.PARITYENABLE
push 0x4563a8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
and edx, 1
shl edx, 1
mov eax, dword [ebp - 0x14]
and al, 0xfd
or eax, edx
mov dword [ebp - 0x14], eax
push 0x4563b4
push 0
push str.OUTXCTSFLOW
push 0x4563cc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
and ecx, 1
shl ecx, 2
mov edx, dword [ebp - 0x14]
and edx, 0xfffffffb
or edx, ecx
mov dword [ebp - 0x14], edx
push 0x4563d8
push 0
push str.OUTXDSRFLOW
push 0x4563f0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
and eax, 1
shl eax, 3
mov ecx, dword [ebp - 0x14]
and ecx, 0xfffffff7
or ecx, eax
mov dword [ebp - 0x14], ecx
push 0x4563fc
push 0
push str.FDTRCONTROL
push 0x456414
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
and edx, 3
shl edx, 4
mov eax, dword [ebp - 0x14]
and al, 0xcf
or eax, edx
mov dword [ebp - 0x14], eax
push 0x456420
push 0
push str.DSRSENSITIVITY
push 0x45643c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
and ecx, 1
shl ecx, 6
mov edx, dword [ebp - 0x14]
and edx, 0xffffffbf
or edx, ecx
mov dword [ebp - 0x14], edx
push 0x456448
push 0
push str.TXCONTINUEONXOFF
push 0x456468
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
and eax, 1
shl eax, 7
mov ecx, dword [ebp - 0x14]
and cl, 0x7f
or ecx, eax
mov dword [ebp - 0x14], ecx
push 0x456474
push 0
push str.OUTX
push 0x456488
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
and edx, 1
shl edx, 8
mov eax, dword [ebp - 0x14]
and ah, 0xfe
or eax, edx
mov dword [ebp - 0x14], eax
push 0x456494
push 0
push 0x4564a0
push 0x4564a4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
and ecx, 1
shl ecx, 9
mov edx, dword [ebp - 0x14]
and dh, 0xfd
or edx, ecx
mov dword [ebp - 0x14], edx
push 0x4564b0
push 0
push str.ERRORCHAR
push 0x4564c8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
and eax, 1
shl eax, 0xa
mov ecx, dword [ebp - 0x14]
and ch, 0xfb
or ecx, eax
mov dword [ebp - 0x14], ecx
push 0x4564d4
push 0
push str.NULLSTRIP
push 0x4564ec
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
and edx, 1
shl edx, 0xb
mov eax, dword [ebp - 0x14]
and ah, 0xf7
or eax, edx
mov dword [ebp - 0x14], eax
push 0x4564f8
push 0
push str.RTSCONTROL
push 0x456510
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
and ecx, 3
shl ecx, 0xc
mov edx, dword [ebp - 0x14]
and dh, 0xcf
or edx, ecx
mov dword [ebp - 0x14], edx
push 0x45651c
push 0
push str.ABORTONERROR
push 0x456538
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
and eax, 1
shl eax, 0xe
mov ecx, dword [ebp - 0x14]
and ch, 0xbf
or ecx, eax
mov dword [ebp - 0x14], ecx
push 0x456544
push 8
push str.BYTESIZE
push 0x45655c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [ebp - 0xa], al
push 0x456568
push 0
push str.PARITY
push 0x45657c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [ebp - 9], al
push 0x456588
push 0
push str.STOPBITS
push 0x4565a0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [ebp - 8], al
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [0x45bc38]
push eax
call dword [sym.imp.KERNEL32.dll_SetCommState]
test eax, eax
jne 0x41c605
push 1
push 0
push 0x1f62
call fcn.00402560
mov ecx, eax
call fcn.00402490
xor ax, ax
jmp 0x41cdfa
push 0x4565ac
push 0
push str.DUMP_SERIALSETTING
push str.SerialC1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x41c9ba
push 0x4565d8
push str.c:_fidiaws_serialc1set.log
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x41c653
push 0
push 0
push str.Error:_unable_to_create_c:_fidiaws_serialc1set.log
call sub.MFC42.DLL_AfxMessageBox
jmp 0x41c9ba
push str.___sizeof_DCB_
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x45663c
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___current_baud_rate
mov eax, dword [ebp - 0x18]
push eax
push 0x45665c
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___binary_mode__no_EOF_check
mov edx, dword [ebp - 0x14]
and edx, 1
push edx
push 0x456684
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___enable_parity_checking
mov ecx, dword [ebp - 0x14]
shr ecx, 1
and ecx, 1
push ecx
push 0x4566a8
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___CTS_output_flow_control
mov eax, dword [ebp - 0x14]
shr eax, 2
and eax, 1
push eax
push 0x4566cc
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___DSR_output_flow_control
mov edx, dword [ebp - 0x14]
shr edx, 3
and edx, 1
push edx
push 0x4566f0
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___DTR_flow_control_type
mov ecx, dword [ebp - 0x14]
shr ecx, 4
and ecx, 3
push ecx
push 0x456714
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___DSR_sensitivity
mov eax, dword [ebp - 0x14]
shr eax, 6
and eax, 1
push eax
push 0x456730
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___XOFF_continues_Tx
mov edx, dword [ebp - 0x14]
shr edx, 7
and edx, 1
push edx
push 0x456750
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___XON_XOFF_out_flow_control
mov ecx, dword [ebp - 0x14]
shr ecx, 8
and ecx, 1
push ecx
push 0x456778
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___XON_XOFF_in_flow_control
mov eax, dword [ebp - 0x14]
shr eax, 9
and eax, 1
push eax
push 0x45679c
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___enable_error_replacement
mov edx, dword [ebp - 0x14]
shr edx, 0xa
and edx, 1
push edx
push 0x4567c0
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___enable_null_stripping
mov ecx, dword [ebp - 0x14]
shr ecx, 0xb
and ecx, 1
push ecx
push 0x4567e4
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___RTS_flow_control
mov eax, dword [ebp - 0x14]
shr eax, 0xc
and eax, 3
push eax
push 0x456800
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___abort_on_error
mov edx, dword [ebp - 0x14]
shr edx, 0xe
and edx, 1
push edx
push 0x45681c
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___reserved
mov ecx, dword [ebp - 0x14]
shr ecx, 0xf
and ecx, 0x1ffff
push ecx
push 0x456830
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___not_currently_used
mov eax, dword [ebp - 0x10]
and eax, 0xffff
push eax
push 0x456850
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___transmit_XON_threshold
mov edx, dword [ebp - 0xe]
and edx, 0xffff
push edx
push 0x456874
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___transmit_XOFF_threshold
mov ecx, dword [ebp - 0xc]
and ecx, 0xffff
push ecx
push 0x456898
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___number_of_bits_byte__4_8
mov eax, dword [ebp - 0xa]
and eax, 0xff
push eax
push 0x4568bc
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___0_4no_odd_even_mark_space
mov edx, dword [ebp - 9]
and edx, 0xff
push edx
push 0x4568e4
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___0_1_2__1__1.5__2
mov ecx, dword [ebp - 8]
and ecx, 0xff
push ecx
push 0x456904
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___Tx_and_Rx_XON_character
movsx eax, byte [ebp - 7]
push eax
push 0x456928
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___Tx_and_Rx_XOFF_character
movsx edx, byte [ebp - 6]
push edx
push 0x45694c
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___error_replacement_character
movsx ecx, byte [ebp - 5]
push ecx
push 0x456974
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___end_of_input_character
movsx eax, byte [ebp - 4]
push eax
push 0x456998
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push str.___received_event_character
movsx edx, byte [ebp - 3]
push edx
push str._d__s_n
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [ebp - 0x40], 0
lea edx, [ebp - 0x34]
push edx
mov eax, dword [0x45bc38]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommTimeouts]
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [0x45bc38]
push edx
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
push 0
push 0
push 0x1f5b
call fcn.00402560
mov ecx, eax
call fcn.00402490
cmp dword [0x45bc28], 1
jne 0x41ccab
mov dword [ebp - 0x44], 0
mov eax, 1
test eax, eax
je 0x41ca96
push 0x40000000
push 0x45bc34
push 4
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x80]
call dword [edx + 4]
cmp dword [0x45bc34], 0xffffffff
jne 0x41ca92
cmp dword [ebp - 0x44], 0x10
jne 0x41ca7c
push 2
push 0
push 0x1f62
call fcn.00402560
mov ecx, eax
call fcn.00402490
xor ax, ax
jmp 0x41cdfa
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41ca94
jmp 0x41ca96
jmp 0x41ca27
mov ecx, dword [0x45bc34]
push ecx
call dword [sym.imp.CpuDriverInterface.dll_public:_static_class_CCncMemI____cdecl_CCncMemI::Instance_void_]
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x84]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x84]
call dword [eax + 0x24]
and eax, 0xff
test eax, eax
jne 0x41cae0
push 4
push 0
push 0x1f62
call fcn.00402560
mov ecx, eax
call fcn.00402490
xor ax, ax
jmp 0x41cdfa
push 0x14
push 0
push 0x45b5b0
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x14
push 0
push 0x45bae8
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x45bc2c], eax
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x45b5c0], eax
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x45baf8], eax
push 0x14
push 0
push 0x45bb00
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x45bb10], eax
push 0x14
push 0
push 0x45b598
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x45b5a8], eax
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 0x44], 0
cmp dword [0x45bae4], 1
jne 0x41cbd2
push 0
push 0
push 0
push 0
call fcn.00403be0
push eax
push 0x41ddd9
call sub.MFC42.DLL_AfxBeginThread
mov edx, dword [ebp - 0x48]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x44], 0
je 0x41cbd2
push 0
push 0
push 0x1f5c
call fcn.00402560
mov ecx, eax
call fcn.00402490
cmp dword [0x45bae4], 2
jne 0x41cc17
push 0
push 0
push 0
push 0
call fcn.00403be0
push eax
push 0x41df11
call sub.MFC42.DLL_AfxBeginThread
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 0x44], eax
mov edx, dword [ebp - 0x48]
cmp dword [edx + 0x44], 0
je 0x41cc17
push 0
push 0
push 0x1f5d
call fcn.00402560
mov ecx, eax
call fcn.00402490
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x44], 0
je 0x41cc2b
mov ecx, dword [ebp - 0x48]
mov word [ecx + 0x54], 1
jmp 0x41cc33
xor ax, ax
jmp 0x41cdfa
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x44]
mov ecx, dword [ebp - 0x48]
mov edx, dword [eax + 0x30]
mov dword [ecx + 0x50], edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x44]
mov edx, dword [ecx + 0x2c]
mov dword [0x45b5c8], edx
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x40], 0
je 0x41ccab
mov ecx, dword [ebp - 0x48]
cmp dword [ecx + 0x40], 1
jne 0x41cc75
push 2
mov edx, dword [0x45b5c8]
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x40], 2
jl 0x41cc90
push 0xf
mov ecx, dword [0x45b5c8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x41ccab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
push edx
call fcn.0041d2a3
add esp, 4
cmp dword [0x45bae4], 1
jne 0x41ccf0
push 0
push 0
push 0
push 0
call fcn.00403be0
push eax
push 0x41d878
call sub.MFC42.DLL_AfxBeginThread
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 0x48], eax
mov edx, dword [ebp - 0x48]
cmp dword [edx + 0x48], 0
je 0x41ccf0
push 0
push 0
push 0x1f5e
call fcn.00402560
mov ecx, eax
call fcn.00402490
cmp dword [0x45bae4], 2
jne 0x41cd35
push 0
push 0
push 0
push 0
call fcn.00403be0
push eax
push 0x41da13
call sub.MFC42.DLL_AfxBeginThread
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 0x48], eax
mov edx, dword [ebp - 0x48]
cmp dword [edx + 0x48], 0
je 0x41cd35
push 0
push 0
push 0x1f5f
call fcn.00402560
mov ecx, eax
call fcn.00402490
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x48], 0
je 0x41cd49
mov ecx, dword [ebp - 0x48]
mov word [ecx + 0x56], 1
jmp 0x41cd51
xor ax, ax
jmp 0x41cdfa
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x48]
mov ecx, dword [ebp - 0x48]
mov edx, dword [eax + 0x30]
mov dword [ecx + 0x4c], edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x48]
mov edx, dword [ecx + 0x2c]
mov dword [0x45b5c4], edx
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x40], 0
je 0x41cdc9
mov ecx, dword [ebp - 0x48]
cmp dword [ecx + 0x40], 1
jne 0x41cd93
push 2
mov edx, dword [0x45b5c4]
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x40], 2
jl 0x41cdae
push 0xf
mov ecx, dword [0x45b5c4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x41cdc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
push edx
call fcn.0041d2a3
add esp, 4
mov eax, dword [0x45b5c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x7fffffff
jne 0x41cdf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0041d2a3
add esp, 4
mov ax, 1
mov esp, ebp
pop ebp
ret