Function at 0x42aab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46afee
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x48a034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x160], ebx
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.004283d0
add esp, 8
push 1
push 0x47d254
lea ecx, [ebp - 0x108]
mov dword [ebp - 4], 0
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0xf
mov byte [ebp - 0x108], 0
call fcn.0040a480
push 2
push 0x46e2c4
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 1
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0xf
mov byte [ebp - 0xf0], 0
call fcn.0040a480
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.004285b0
mov edx, dword [ebp - 0xdc]
add esp, 0xc
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x42abbd
mov ecx, dword [ebp - 0xf0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42abb3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b239
push edx
push ecx
call fcn.0042ef11
add esp, 8
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0xf
mov byte [ebp - 0xf0], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x42ac16
mov ecx, dword [ebp - 0x108]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42ac0c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b239
push edx
push ecx
call fcn.0042ef11
add esp, 8
push 1
push 0x47d254
lea ecx, [ebp - 0x108]
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0xf
mov byte [ebp - 0x108], 0
call fcn.0040a480
push 1
push 0x46e2c8
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 3
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0xf
mov byte [ebp - 0xf0], 0
call fcn.0040a480
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.004285b0
mov edx, dword [ebp - 0xdc]
add esp, 0xc
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x42acd3
mov ecx, dword [ebp - 0xf0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42acc9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b23e
push edx
push ecx
call fcn.0042ef11
add esp, 8
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0xf
mov byte [ebp - 0xf0], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x42ad2c
mov ecx, dword [ebp - 0x108]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42ad22
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b23e
push edx
push ecx
call fcn.0042ef11
add esp, 8
push 1
push 0x47d254
lea ecx, [ebp - 0x108]
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0xf
mov byte [ebp - 0x108], 0
call fcn.0040a480
push 1
push 0x46e2cc
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 5
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0xf
mov byte [ebp - 0xf0], 0
call fcn.0040a480
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.004285b0
mov edx, dword [ebp - 0xdc]
add esp, 0xc
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x42ade9
mov ecx, dword [ebp - 0xf0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42addf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b243
push edx
push ecx
call fcn.0042ef11
add esp, 8
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0xf
mov byte [ebp - 0xf0], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x42ae42
mov ecx, dword [ebp - 0x108]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42ae38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b243
push edx
push ecx
call fcn.0042ef11
add esp, 8
push 1
push 0x47d254
lea ecx, [ebp - 0x108]
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0xf
mov byte [ebp - 0x108], 0
call fcn.0040a480
push 2
push 0x46e2d0
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 7
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0xf
mov byte [ebp - 0xf0], 0
call fcn.0040a480
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.004285b0
mov edx, dword [ebp - 0xdc]
add esp, 0xc
mov byte [ebp - 4], 7
cmp edx, 0x10
jb 0x42aeff
mov ecx, dword [ebp - 0xf0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42aef5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b248
push edx
push ecx
call fcn.0042ef11
add esp, 8
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0xf
mov byte [ebp - 0xf0], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x42af58
mov ecx, dword [ebp - 0x108]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42af4e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b248
push edx
push ecx
call fcn.0042ef11
add esp, 8
cmp byte [ebx + 0x59], 0
mov di, word [ebp + 8]
je 0x42afd1
cmp dword [ebp - 0x124], 0x10
movzx eax, di
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0xe0], eax
lea eax, [ebp - 0x138]
cmovae eax, dword [ebp - 0x138]
push str.Kiosk_Monitor___Watchdog_Control_Panel
push str.TWatchdogMainWindow
mov dword [ebp - 0xdc], eax
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x42afd1
lea eax, [ebp - 0x164]
push eax
push 0x7d0
push 3
lea eax, [ebp - 0xe4]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0x4a
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
jmp 0x42b1e5
mov edx, dword [ebp + 0x14]
test edx, edx
jl 0x42afe1
mov eax, dword [ebp + 0x10]
jg 0x42afe6
test eax, eax
jne 0x42afe6
call fcn.0042bc20
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x168], edx
push eax
call fcn.00451def
movzx eax, di
push eax
push dword [ebp - 0x15c]
mov eax, dword [ebp - 0x14c]
push dword [ebp - 0x158]
inc eax
push dword [ebp - 0x154]
push dword [ebp - 0x150]
push eax
mov eax, dword [ebp - 0x148]
add eax, 0xffffff9c
push eax
lea eax, [ebp - 0xd8]
push str._02i_02i_02i_02i_02i_02i_03i
push eax
call fcn.0042a070
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x110], 0
add esp, 0x2c
mov dword [ebp - 0x10c], 0xf
mov byte [ebp - 0x120], 0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42b070
sub ecx, edx
lea eax, [ebp - 0xd8]
push ecx
push eax
lea ecx, [ebp - 0x120]
call fcn.0040a480
cmp dword [ebp - 0x124], 0x10
lea eax, [ebp - 0x138]
push dword [ebp - 0x128]
cmovae eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x120]
push eax
mov byte [ebp - 4], 9
call fcn.0040a5c0
push 3
push 0x46e370
lea ecx, [ebp - 0x120]
call fcn.0040a5c0
lea eax, [ebx + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0x8c], 8
lea esi, [ebx + 0x78]
mov eax, esi
jb 0x42b0e2
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 4
push 0
push 1
push 0x40000000
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x42b135
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x14], 8
jb 0x42b111
mov esi, dword [esi]
push 0
push 0
push 4
push 0
push 1
push 0x40000000
push esi
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x42b135
mov eax, dword [ebp - 0x160]
add eax, 0x60
jmp 0x42b189
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x10c], 0x10
lea ecx, [ebp - 0x164]
push 0
push ecx
push dword [ebp - 0x110]
lea eax, [ebp - 0x120]
cmovae eax, dword [ebp - 0x120]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebp - 0x160]
mov eax, dword [ebp - 0x164]
push edi
add dword [esi + 0xb8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x10c]
cmp edx, 0x10
jb 0x42b1ca
mov ecx, dword [ebp - 0x120]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42b1c0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b24d
push edx
push ecx
call fcn.0042ef11
add esp, 8
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0xf
mov byte [ebp - 0x120], 0
mov edx, dword [ebp - 0x124]
cmp edx, 0x10
jb 0x42b21b
mov ecx, dword [ebp - 0x138]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42b211
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b24d
push edx
push ecx
call fcn.0042ef11
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042eecb
mov esp, ebp
pop ebp
ret 0x10
call fcn.00450732
call fcn.00450732
call fcn.00450732
call fcn.00450732
call fcn.00450732
int3