Function at 0x42e0c0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4a15b0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eed38]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esp + 0x54]
xor ebp, ebp
cmp ebx, ebp
jne 0x42e0fa
xor eax, eax
jmp 0x42e4c6
lea ecx, [esp + 0x2c]
call fcn.0045bc62
push ebp
push ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x54], ebp
call fcn.0045bcfa
test eax, eax
je 0x42e128
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call fcn.00459da6
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x42e142
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x54], eax
mov ecx, dword [esi + 0x2d4]
push ecx
lea edx, [esp + 0x58]
push 0x4a8cb8
push edx
mov byte [esp + 0x58], 1
call fcn.00401ce0
mov eax, dword [esp + 0x60]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 0xc
push ebx
push eax
push str.Port
push str.Serial_port
call edi
mov ecx, dword [esi + 0x2d0]
push ecx
lea edx, [esp + 0x58]
push 0x4a8cb8
push edx
call fcn.00401ce0
mov eax, dword [esp + 0x60]
add esp, 0xc
push ebx
push eax
push str.Baud_rate
push str.Serial_port
call edi
mov eax, dword [esi + 0x2dc]
push ebx
push eax
push 0x4ecbb8
push 0x4ecba4
call edi
call fcn.00468552
cmp eax, ebp
je 0x42e1db
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov ebp, eax
mov eax, dword [esi + 0x2dc]
cmp dword [eax - 0xc], 0
jl 0x42e203
push str.PAC_
push eax
call fcn.00482831
add esp, 8
test eax, eax
je 0x42e203
sub eax, dword [esi + 0x2dc]
sar eax, 1
je 0x42e20d
mov dword [ebp + 0x1aac], 0
xor eax, eax
test ebp, ebp
je 0x42e220
cmp dword [ebp + 0x1aac], eax
je 0x42e220
mov eax, 1
push eax
lea ecx, [esp + 0x58]
push 0x4a8cb8
push ecx
call fcn.00401ce0
mov edx, dword [esp + 0x60]
add esp, 0xc
push ebx
push edx
push str.PacketMode
push 0x4ecc0c
call edi
xor eax, eax
cmp dword [esi + 0xc14], eax
sete al
push eax
lea eax, [esp + 0x58]
push 0x4a8cb8
push eax
call fcn.00401ce0
mov ecx, dword [esp + 0x60]
add esp, 0xc
push ebx
push ecx
push str.AutoGenerateSN
push 0x4a8ddc
call edi
mov eax, dword [esi + 0x2dc]
push ebx
push 0
push 0
push eax
call edi
call fcn.00459da6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42e29d
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x4c], 2
call fcn.00459da6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42e2cc
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x160]
push 0
push 0
push 0x1004
push ecx
mov byte [esp + 0x5c], 3
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x24], eax
call fcn.00459da6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42e315
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x20], ebp
xor edi, edi
mov byte [esp + 0x4c], 4
cmp dword [esi + 0x2ec], edi
je 0x42e41f
cmp dword [esp + 0x24], edi
jle 0x42e41f
mov dword [esp + 0x14], edi
mov ecx, dword [esi + 0x2dc]
cmp dword [ecx - 0xc], 0
je 0x42e41f
mov edx, dword [esi + 0x2ec]
mov ecx, dword [edx + 0x208]
add ecx, dword [esp + 0x14]
jne 0x42e36c
xor eax, eax
jmp 0x42e380
mov eax, ecx
lea ebp, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x42e371
sub eax, ebp
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00401890
push 1
push edi
lea eax, [esp + 0x30]
lea ebp, [esi + 0x140]
push eax
mov ecx, ebp
call fcn.0045f421
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 5
call fcn.00401c20
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x4c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e3d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
push edi
mov ecx, ebp
call fcn.0045f5ba
push eax
lea edx, [esp + 0x28]
push str._d__s
push edx
call fcn.00401ce0
mov ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov eax, dword [esi + 0x2dc]
add esp, 0x10
push ebx
push ebp
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add dword [esp + 0x14], 0xbcc
inc edi
cmp edi, dword [esp + 0x24]
jl 0x42e346
add ebp, 0xfffffff0
mov byte [esp + 0x4c], 3
lea edx, [ebp + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x42e441
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x4c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e466
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x4c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e48b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov byte [esp + 0x4c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e4b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], 0xffffffff
call fcn.0045bc8b
mov eax, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 4