Function at 0x4172b0
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fbc8
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x441288]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00417070
test al, al
je 0x417798
lea eax, [ebp - 0x5c]
mov ecx, edi
push eax
call fcn.004170d0
push 0x4358bc
lea edx, [ebp - 0x5c]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00403140
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd4]
mov eax, dword [edi + 8]
xorps xmm0, xmm0
mov dword [ebp - 0xcc], eax
mov ax, word [edi + 0xc]
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
mov word [ebp - 0xc8], ax
mov byte [ebp - 0x96], 0
movdqu xmmword [ebp - 0xc6], xmm0
movdqu xmmword [ebp - 0xb6], xmm0
movdqu xmmword [ebp - 0xa6], xmm0
call fcn.004177e0
mov eax, dword [edi]
test eax, eax
je 0x41742d
cmp eax, dword [ebp - 0xd4]
je 0x41742d
push 0x43dfc4
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x74]
call fcn.00403140
add esp, 4
mov esi, eax
push edi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.004013b0
mov edx, eax
mov ecx, esi
call fcn.00405230
mov byte [ebp - 4], 1
cmp dword [ebp - 0x60], 8
mov byte [ebp - 0xd5], al
jb 0x4173cc
push dword [ebp - 0x74]
call fcn.0041e452
mov al, byte [ebp - 0xd5]
add esp, 4
test al, al
jne 0x4173f0
call fcn.0041e289
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x14
push str.....common_terminalID.cpp
push str.ERROR
call fcn.00416980
add esp, 0x14
push str.WTware_TFTP
push edi
lea ecx, [ebp - 0x24]
call fcn.004013b0
push eax
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x6c]
call fcn.004013b0
push eax
push ecx
lea eax, [ebp - 0x94]
push eax
lea ecx, [edi + 8]
call fcn.00402aa0
push eax
push str.__s__Changed_IP__s____s._Source:__s.
call fcn.004184a0
add esp, 0x14
cmp byte [edi + 0x2e], 0
lea esi, [edi + 0x2e]
je 0x4174df
lea edx, [ebp - 0xa6]
mov ecx, esi
call fcn.00415fc0
test al, al
jne 0x4174df
push str.version
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.00403140
add esp, 4
mov edx, esi
mov byte [ebp - 4], 3
mov ecx, eax
call fcn.00405230
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
mov byte [ebp - 0xd5], al
jb 0x417490
push dword [ebp - 0x2c]
call fcn.0041e452
mov al, byte [ebp - 0xd5]
add esp, 4
test al, al
jne 0x4174b4
call fcn.0041e289
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x1a
push str.....common_terminalID.cpp
push str.ERROR
call fcn.00416980
add esp, 0x14
push str.WTware_TFTP
push esi
lea eax, [ebp - 0xa6]
push eax
push ecx
lea eax, [ebp - 0x94]
push eax
lea ecx, [edi + 8]
call fcn.00402aa0
push eax
push str.__s__Changed_version__s____s._Source:__s.
call fcn.004184a0
add esp, 0x14
cmp byte [edi + 0xe], 0
lea esi, [edi + 0xe]
je 0x417595
lea edx, [ebp - 0xc6]
mov ecx, esi
call fcn.00415fc0
test al, al
jne 0x417595
push str.host
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.00403140
add esp, 4
mov edx, esi
mov byte [ebp - 4], 4
mov ecx, eax
call fcn.00405230
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
mov byte [ebp - 0xd5], al
jb 0x417542
push dword [ebp - 0x2c]
call fcn.0041e452
mov al, byte [ebp - 0xd5]
add esp, 4
test al, al
jne 0x417566
call fcn.0041e289
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x20
push str.....common_terminalID.cpp
push str.ERROR
call fcn.00416980
add esp, 0x14
push str.WTware_TFTP
push esi
lea eax, [ebp - 0xc6]
push eax
push ecx
lea eax, [ebp - 0x94]
lea esi, [edi + 8]
push eax
mov ecx, esi
call fcn.00402aa0
push eax
push str.__s__Changed_host__s____s._Source:__s.
call fcn.004184a0
add esp, 0x14
jmp 0x417598
lea esi, [edi + 8]
mov eax, dword [edi + 4]
test eax, eax
je 0x41764e
cmp eax, dword [ebp - 0xd0]
je 0x41764e
push str.platform
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.00403140
add esp, 4
mov esi, eax
mov byte [ebp - 4], 5
mov ecx, dword [edi + 4]
call fcn.00416fa0
mov edx, eax
mov ecx, esi
call fcn.00405230
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0xd5], al
mov byte [ebp - 4], 1
call fcn.00403110
cmp byte [ebp - 0xd5], 0
jne 0x417614
call fcn.0041e289
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x26
push str.....common_terminalID.cpp
push str.ERROR
call fcn.00416980
add esp, 0x14
mov ecx, dword [edi + 4]
push str.WTware_TFTP
call fcn.00416fa0
mov ecx, dword [ebp - 0xd0]
push eax
call fcn.00416fa0
push eax
push ecx
lea eax, [ebp - 0x94]
lea esi, [edi + 8]
push eax
mov ecx, esi
call fcn.00402aa0
push eax
push str.__s__Changed_platform__s____s._Source:__s.
call fcn.004184a0
add esp, 0x14
mov al, byte [edi + 0x3e]
test al, al
je 0x4176e5
cmp al, byte [ebp - 0x96]
je 0x4176e5
push 0x43e0b0
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.00403140
add esp, 4
mov edx, 0x43e0ac
mov byte [ebp - 4], 6
mov ecx, eax
call fcn.00405230
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0xd5], al
mov byte [ebp - 4], 1
call fcn.00403110
cmp byte [ebp - 0xd5], 0
jne 0x4176c3
call fcn.0041e289
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x2c
push str.....common_terminalID.cpp
push str.ERROR
call fcn.00416980
add esp, 0x14
push str.WTware_TFTP
push ecx
lea eax, [ebp - 0x94]
mov ecx, esi
push eax
call fcn.00402aa0
push eax
push str.__s__Set_iswtware_flag._Source:__s.
call fcn.004184a0
add esp, 0xc
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
push 0
cmovae eax, dword [ebp - 0x5c]
push 0x2000010
push 3
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x417740
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41775e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push eax
lea ecx, [ebp - 0x5c]
call fcn.00402ae0
push eax
push str.Unable_to_open__S._Error__d__0x_x_.
call fcn.004168e0
add esp, 0x10
cmp dword [ebp - 0x30], 8
jb 0x41776f
push dword [ebp - 0x44]
call fcn.0041e452
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
cmp dword [ebp - 0x48], 8
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x417794
push dword [ebp - 0x5c]
call fcn.0041e452
add esp, 4
mov al, 1
jmp 0x4177ba
call fcn.0041e289
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0xa
push str.....common_terminalID.cpp
push str.ERROR
call fcn.00416980
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e246
mov esp, ebp
pop ebp
ret 4