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

Disassembly:
push 0xffffffffffffffff
push 0x4b7a50
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50a360]
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 0x4374ba
xor eax, eax
jmp 0x437886
lea ecx, [esp + 0x2c]
call fcn.00475e73
push ebp
push ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x54], ebp
call fcn.00475f0b
test eax, eax
je 0x4374e8
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.0046c2c1
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x437502
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 + 0x2ec]
push ecx
lea edx, [esp + 0x58]
push 0x4bfcf4
push edx
mov byte [esp + 0x58], 1
call fcn.00401cb0
mov eax, dword [esp + 0x60]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 0xc
push ebx
push eax
push str.Port
push 0x507d24
call edi
mov ecx, dword [esi + 0x2e8]
push ecx
lea edx, [esp + 0x58]
push 0x4bfcf4
push edx
call fcn.00401cb0
mov eax, dword [esp + 0x60]
add esp, 0xc
push ebx
push eax
push str.Baud_rate
push 0x507d24
call edi
mov eax, dword [esi + 0x2f8]
push ebx
push eax
push 0x507ce8
push 0x507cd4
call edi
call fcn.004798d0
cmp eax, ebp
je 0x43759b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov ebp, eax
mov eax, dword [esi + 0x2f8]
cmp dword [eax - 0xc], 0
jl 0x4375c3
push str.PAC_
push eax
call fcn.00495b82
add esp, 8
test eax, eax
je 0x4375c3
sub eax, dword [esi + 0x2f8]
sar eax, 1
je 0x4375cd
mov dword [ebp + 0x1fc0], 0
xor eax, eax
test ebp, ebp
je 0x4375e0
cmp dword [ebp + 0x1fc0], eax
je 0x4375e0
mov eax, 1
push eax
lea ecx, [esp + 0x58]
push 0x4bfcf4
push ecx
call fcn.00401cb0
mov edx, dword [esp + 0x60]
add esp, 0xc
push ebx
push edx
push str.PacketMode
push 0x507d5c
call edi
xor eax, eax
cmp dword [esi + 0xc68], eax
sete al
push eax
lea eax, [esp + 0x58]
push 0x4bfcf4
push eax
call fcn.00401cb0
mov ecx, dword [esp + 0x60]
add esp, 0xc
push ebx
push ecx
push str.AutoGenerateSN
push 0x4bfe30
call edi
mov eax, dword [esi + 0x2f8]
push ebx
push 0
push 0
push eax
call edi
call fcn.0046c2c1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43765d
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.0046c2c1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43768c
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.0046c2c1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4376d5
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 + 0x308], edi
je 0x4377df
cmp dword [esp + 0x24], edi
jle 0x4377df
mov dword [esp + 0x14], edi
mov ecx, dword [esi + 0x2f8]
cmp dword [ecx - 0xc], 0
je 0x4377df
mov edx, dword [esi + 0x308]
mov ecx, dword [edx + 0x208]
add ecx, dword [esp + 0x14]
jne 0x43772c
xor eax, eax
jmp 0x437740
mov eax, ecx
lea ebp, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x437731
sub eax, ebp
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00401860
push 1
push edi
lea eax, [esp + 0x30]
lea ebp, [esi + 0x140]
push eax
mov ecx, ebp
call fcn.0046f422
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 5
call fcn.00401bf0
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 0x437794
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.0046f5b5
push eax
lea edx, [esp + 0x28]
push str._d__s
push edx
call fcn.00401cb0
mov ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov eax, dword [esi + 0x2f8]
add esp, 0x10
push ebx
push ebp
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add dword [esp + 0x14], 0xbf4
inc edi
cmp edi, dword [esp + 0x24]
jl 0x437706
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 0x437801
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 0x437826
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 0x43784b
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 0x437870
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.00475e9c
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