Function at 0x4e2b40
Capabilities:
Check if file exists
Get file attributes
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575500
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x968
lea ecx, [ebp - 0x96c]
call fcn.00566717
mov dword [ebp - 4], 0
mov dword [ebp - 0x51c], 0
lea eax, [ebp - 0x518]
push eax
call fcn.005600cb
mov dword [ebp - 0x10], 0x40
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x95c]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x148], 0
jne 0x4e2bd1
mov dword [ebp - 0x970], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x96c]
call fcn.0056676c
mov eax, dword [ebp - 0x970]
jmp 0x4e2e6c
push 0x200
push 0
lea ecx, [ebp - 0x91c]
push ecx
call fcn.0054bf90
add esp, 0xc
push 0x200
push 0
lea edx, [ebp - 0x71c]
push edx
call fcn.0054bf90
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x67c4], 0xf
jne 0x4e2c36
mov ecx, dword [ebp + 8]
add ecx, 0x540e
push ecx
mov edx, dword [ebp + 8]
add edx, 0x5190
push edx
push str.Start_to_product_device_Serial_Number____s__ISP_Version_:__s_
lea eax, [ebp - 0x71c]
push eax
call fcn.0054c6e3
add esp, 0x10
jmp 0x4e2cc4
lea ecx, [ebp - 0x91c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x67c4]
push eax
call fcn.005208bc
add esp, 8
cmp dword [ebp + 0xc], 0
jne 0x4e2c86
push str.:_Pass
push 0x5c7980
lea ecx, [ebp - 0x91c]
push ecx
call fcn.00539f4a
add esp, 0xc
lea edx, [ebp - 0x91c]
push edx
lea eax, [ebp - 0x71c]
push eax
call fcn.0054be90
add esp, 8
jmp 0x4e2cc4
push str.Test_Result_:
lea ecx, [ebp - 0x71c]
push ecx
call fcn.0054be90
add esp, 8
lea edx, [ebp - 0x91c]
push edx
lea eax, [ebp - 0x71c]
push eax
call fcn.0054bea0
add esp, 8
push 0x5c7998
lea ecx, [ebp - 0x71c]
push ecx
call fcn.0054bea0
add esp, 8
push 0x400
push 0
lea edx, [ebp - 0x514]
push edx
call fcn.0054bf90
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.0054bf90
add esp, 0xc
mov dword [ebp - 0x51c], 0x41
lea ecx, [ebp - 0x114]
push ecx
call fcn.00529440
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x59dc]
add eax, 1
push eax
lea ecx, [ebp - 0x95c]
push ecx
lea ecx, [ebp - 0x518]
call fcn.004bde60
push eax
lea ecx, [ebp - 0x518]
call fcn.004bde40
push eax
lea ecx, [ebp - 0x518]
call fcn.004bde20
push eax
push str.DBFile_4d_02d_02d_s_Port__02d.log
lea edx, [ebp - 0x514]
push edx
call fcn.0054c6e3
add esp, 0x1c
lea eax, [ebp - 0x514]
push eax
lea ecx, [ebp - 0x114]
push ecx
call fcn.0054bea0
add esp, 8
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4e2d8c
mov eax, dword [ebp - 0x51c]
or ah, 0x10
mov dword [ebp - 0x51c], eax
push 0
mov ecx, dword [ebp - 0x51c]
push ecx
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x96c]
call fcn.00566829
test eax, eax
je 0x4e2e4a
lea ecx, [ebp - 0x96c]
call fcn.0044d1c0
lea eax, [ebp - 0x71c]
push eax
lea ecx, [ebp - 0x518]
call fcn.004be260
push eax
lea ecx, [ebp - 0x518]
call fcn.004be240
push eax
lea ecx, [ebp - 0x518]
call fcn.004be220
push eax
lea ecx, [ebp - 0x518]
call fcn.004bde20
push eax
lea ecx, [ebp - 0x518]
call fcn.004bde60
push eax
lea ecx, [ebp - 0x518]
call fcn.004bde40
push eax
push str._02d__02d__4d__02d:_02d:_02d_:__s_r_n
lea ecx, [ebp - 0x514]
push ecx
call fcn.0054c6e3
add esp, 0x24
lea edx, [ebp - 0x514]
push edx
call fcn.0054ce70
add esp, 4
push eax
lea eax, [ebp - 0x514]
push eax
lea ecx, [ebp - 0x96c]
call fcn.00566980
lea ecx, [ebp - 0x96c]
call fcn.00566a44
mov dword [ebp - 0x974], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x96c]
call fcn.0056676c
mov eax, dword [ebp - 0x974]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret