Function at 0x100514ff
Capabilities:
Resume thread
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007f6d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ec
push esi
mov dword [ebp - 0x110], 0x692beaa3
mov dword [ebp - 0x1c0], 0x2d149fe
mov dword [ebp - 0x68], 0xf69f7fd1
mov dword [ebp - 0x114], 0xffffffff
mov dword [ebp - 0x1e4], 8
mov dword [ebp - 0x1e0], 8
mov dword [ebp - 0x1dc], 8
mov dword [ebp - 0x1d8], 8
push 1
lea ecx, [ebp - 0x148]
call fcn.1001673e
and dword [ebp - 4], 0
mov dword [ebp - 0x10c], 1
mov dword [ebp - 0x138], 2
mov dword [ebp - 0x14], 0
jmp 0x100515a0
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jge 0x100515b6
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x130], 0x464f16ef
jmp 0x10051599
mov dword [ebp - 0x14], 0
jmp 0x100515c6
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jge 0x100515dc
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x1f8], 3
jmp 0x100515bf
mov dword [ebp - 0x14], 0
jmp 0x100515ec
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jge 0x10051608
push dword [ebp - 0x14]
lea ecx, [ebp - 0x148]
call fcn.100167dc
mov dword [eax], 0xa6ff
jmp 0x100515e5
cmp dword [ebp - 0x110], 0
je 0x100516a5
mov dword [ebp - 0x1ac], 0x579253a3
mov dword [ebp - 0x1bc], 0xfffffffc
push 2
lea ecx, [ebp - 0x1d4]
call fcn.1001673e
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x60], 0
jmp 0x10051654
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 2
jge 0x1005166d
push dword [ebp - 0x60]
lea ecx, [ebp - 0x1d4]
call fcn.100167dc
or dword [eax], 0xffffffff
jmp 0x1005164d
push 0
lea ecx, [ebp - 0x148]
call fcn.100167dc
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x94]
mov dword [ecx], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1d4]
call fcn.100167c0
jmp 0x10051879
push 3
lea ecx, [ebp - 0x16c]
call fcn.1001673e
mov byte [ebp - 4], 2
mov dword [ebp - 0xf0], 0x9d0863e8
mov dword [ebp - 0x38], 0
jmp 0x100516d0
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 3
jge 0x100516ec
push dword [ebp - 0x38]
lea ecx, [ebp - 0x16c]
call fcn.100167dc
mov dword [eax], 0x32e0c280
jmp 0x100516c9
mov byte [ebp - 0x22], 0
movzx eax, byte [ebp - 0x22]
test eax, eax
je 0x10051703
push 0x1d00
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea ecx, [ebp - 0x148]
call fcn.100167dc
cmp dword [eax], 0
jne 0x10051857
xor eax, eax
inc eax
je 0x10051730
cmp dword [ebp - 0x68], 0
je 0x10051730
mov dword [ebp - 0x88], 1
jmp 0x10051737
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x10c]
cmp dword [ebp - 0x88], eax
jg 0x10051751
mov dword [ebp - 0xfc], 1
jmp 0x10051758
and dword [ebp - 0xfc], 0
mov eax, dword [ebp - 0xfc]
neg eax
cmp eax, 8
jbe 0x10051771
mov dword [ebp - 0x84], 1
jmp 0x10051778
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x138]
cmp dword [ebp - 0x84], eax
jg 0x10051792
mov dword [ebp - 0xe0], 1
jmp 0x10051799
and dword [ebp - 0xe0], 0
xor esi, esi
inc esi
sub esi, dword [ebp - 0xe0]
push 0
lea ecx, [ebp - 0x16c]
call fcn.100167dc
cmp esi, dword [eax]
jg 0x100517bf
mov dword [ebp - 0x90], 1
jmp 0x100517c6
and dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x114]
cmp dword [ebp - 0x90], eax
jle 0x100517e0
mov dword [ebp - 0xc8], 1
jmp 0x100517e7
and dword [ebp - 0xc8], 0
xor esi, esi
sub esi, dword [ebp - 0xc8]
push 0
lea ecx, [ebp - 0x148]
call fcn.100167dc
add esi, dword [eax]
push 1
lea ecx, [ebp - 0x16c]
call fcn.100167dc
cmp esi, dword [eax]
jge 0x1005181b
mov dword [ebp - 0x98], 1
jmp 0x10051822
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xf0], eax
xor eax, eax
sub eax, dword [ebp - 0xf0]
je 0x1005183e
cmp dword [ebp - 0x68], 0
jne 0x10051857
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x130], 0
jne 0x10051857
and dword [ebp - 0xa0], 0
jmp 0x10051861
mov dword [ebp - 0xa0], 1
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x16c]
call fcn.100167c0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x148]
call fcn.100167c0
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x100521b3
mov eax, dword [ebp + 8]
mov dword [ebp - 0x128], eax
push 4
lea ecx, [ebp - 0x78]
call fcn.1001673e
mov dword [ebp - 4], 3
mov dword [ebp - 0x10], 0
jmp 0x100518be
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x100518d4
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x124], 1
jmp 0x100518b7
mov dword [ebp - 0x10], 0
jmp 0x100518e4
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 4
jge 0x100518fd
push dword [ebp - 0x10]
lea ecx, [ebp - 0x78]
call fcn.100167dc
mov dword [eax], 0xe83c773
jmp 0x100518dd
mov dword [ebp - 0x10], 0
jmp 0x1005190d
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x10051923
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x108], 0xe075257
jmp 0x10051906
push 3
lea ecx, [ebp - 0x78]
call fcn.100167dc
and dword [eax], 0
jmp 0x10051953
push 3
lea ecx, [ebp - 0x78]
call fcn.100167dc
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xd0]
mov dword [ecx], eax
push 3
lea ecx, [ebp - 0x78]
call fcn.100167dc
cmp dword [eax], 2
jg 0x10051a1f
mov dword [ebp - 0x5c], 0xad86e52d
push 3
lea ecx, [ebp - 0x160]
call fcn.1001673e
mov byte [ebp - 4], 4
mov dword [ebp - 0x44], 0
jmp 0x1005198e
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 3
jge 0x100519aa
push dword [ebp - 0x44]
lea ecx, [ebp - 0x160]
call fcn.100167dc
mov dword [eax], 1
jmp 0x10051987
push 3
lea ecx, [ebp - 0x78]
call fcn.100167dc
mov eax, dword [eax]
cmp dword [ebp + eax*4 - 0x124], 0
je 0x100519d1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x160]
call fcn.100167c0
jmp 0x10051a1f
mov dword [ebp - 0x5c], 2
jmp 0x100519e1
mov eax, dword [ebp - 0x5c]
dec eax
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jl 0x10051a0b
push 3
lea ecx, [ebp - 0x78]
call fcn.100167dc
mov eax, dword [eax]
mov esi, dword [ebp + eax*4 - 0x124]
push 2
lea ecx, [ebp - 0x160]
call fcn.100167dc
mov dword [eax], esi
jmp 0x100519da
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x160]
call fcn.100167c0
jmp 0x10051932
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x124], 1
jg 0x10051a3b
mov dword [ebp - 0xd8], 1
jmp 0x10051a42
and dword [ebp - 0xd8], 0
push 3
lea ecx, [ebp - 0x78]
call fcn.100167dc
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x124]
mov dword [ebp - 0x1b0], eax
push 0xfffffffffffffffb
pop eax
cmp eax, 0xfffffff9
jne 0x10051a73
mov dword [ebp - 0xa8], 1
jmp 0x10051a7a
and dword [ebp - 0xa8], 0
cmp dword [ebp - 0xa8], 1
jl 0x10051a8f
mov dword [ebp - 0xe8], 1
jmp 0x10051a96
and dword [ebp - 0xe8], 0
imul eax, dword [ebp - 0xe8], 0
mov dword [ebp - 0xb0], eax
push 1
lea ecx, [ebp - 0x78]
call fcn.100167dc
mov ecx, dword [ebp - 0xb0]
mov dword [eax], ecx
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x124]
add eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xd8]
neg ecx
cmp ecx, eax
jne 0x10051ae0
mov dword [ebp - 0xb8], 1
jmp 0x10051ae7
and dword [ebp - 0xb8], 0
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x108]
cmp dword [ebp - 0xb8], eax
jge 0x10051b4c
mov dword [ebp - 0x4c], 5
mov dword [ebp - 0x4c], 2
jmp 0x10051b12
mov eax, dword [ebp - 0x4c]
dec eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jl 0x10051b47
mov dword [ebp - 0x30], 0x6728ad64
mov dword [ebp - 0x30], 0
jmp 0x10051b2f
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 3
jge 0x10051b45
mov eax, dword [ebp - 0x30]
mov dword [ebp + eax*4 - 0x108], 0
jmp 0x10051b28
jmp 0x10051b0b
jmp 0x10051c7d
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x80], 8
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x1b4], eax
push 4
pop eax
shl eax, 1
mov esi, dword [ebp + eax - 0x108]
push 3
lea ecx, [ebp - 0x78]
call fcn.100167dc
mov dword [eax], esi
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x80]
cmp dword [ebp - 0x64], eax
jg 0x10051b92
mov dword [ebp - 0xf8], 1
jmp 0x10051b99
and dword [ebp - 0xf8], 0
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0xf8], eax
je 0x10051bb0
mov dword [ebp - 0xc0], 1
jmp 0x10051bb7
and dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0xc0]
add eax, 0x5f87
jne 0x10051bd3
cmp dword [ebp - 0x80], 0
jne 0x10051bd3
and dword [ebp - 0x8c], 0
jmp 0x10051bdd
mov dword [ebp - 0x8c], 1
imul eax, dword [ebp - 0x8c], 0xa7fc
test eax, eax
jne 0x10051c00
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x108], 0
jne 0x10051c00
and dword [ebp - 0x7c], 0
jmp 0x10051c07
mov dword [ebp - 0x7c], 1
cmp dword [ebp - 0x7c], 3
jbe 0x10051c22
mov eax, 0xd3d38e20
test eax, eax
je 0x10051c22
mov dword [ebp - 0x9c], 1
jmp 0x10051c29
and dword [ebp - 0x9c], 0
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x108]
cmp dword [ebp - 0x9c], eax
jg 0x10051c49
mov dword [ebp - 0xa4], 1
jmp 0x10051c50
and dword [ebp - 0xa4], 0
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0xa4]
mov dword [ebp + eax - 0x108], ecx
mov byte [ebp - 0x2a], 0
movzx eax, byte [ebp - 0x2a]
test eax, eax
je 0x10051c7d
push 0
push 0x4c1
push 0
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.100167c0
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [eax], 3
jmp 0x10051ca8
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x54]
mov dword [ecx], eax
mov eax, dword [ebp - 0x54]
cmp dword [eax], 0
jl 0x100521b1
mov dword [ebp - 0x34], 0xffffffff
push 3
lea ecx, [ebp - 0x198]
call fcn.1001673e
mov dword [ebp - 4], 5
mov dword [ebp - 0x12c], 0xb3847d22
mov dword [ebp - 0x3c], 0
jmp 0x10051ce9
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 3
jge 0x10051d02
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x198]
call fcn.100167dc
and dword [eax], 0
jmp 0x10051ce2
mov dword [ebp - 0x34], 0
jmp 0x10051d12
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xfffffff8
jge 0x10051e65
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x28], 0xffffffec
jmp 0x10051d33
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffe7
jge 0x10051e60
push 1
lea ecx, [ebp - 0x154]
call fcn.1001673e
mov byte [ebp - 4], 6
mov dword [ebp - 0xac], 0xe34edf6b
mov dword [ebp - 0x6c], 0xe19f23e5
mov dword [ebp - 0x40], 0
jmp 0x10051d6f
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 1
jge 0x10051d8b
push dword [ebp - 0x40]
lea ecx, [ebp - 0x154]
call fcn.100167dc
mov dword [eax], 0xfffffffb
jmp 0x10051d68
push 0
lea ecx, [ebp - 0x198]
call fcn.100167dc
mov dword [eax], 0xef5d870a
push 0
lea ecx, [ebp - 0x154]
call fcn.100167dc
cmp dword [eax], 0xef5d870a
jle 0x10051dbf
mov dword [ebp - 0xb4], 1
jmp 0x10051dc6
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xb4]
sub eax, 0x7a6e4973
cmp eax, dword [ebp - 0x6c]
je 0x10051df4
mov dword [ebp - 0xbc], 1
jmp 0x10051dfb
and dword [ebp - 0xbc], 0
push 0
lea ecx, [ebp - 0x154]
call fcn.100167dc
mov ecx, dword [ebp - 0xbc]
cmp ecx, dword [eax]
jg 0x10051e1e
mov dword [ebp - 0x134], 1
jmp 0x10051e25
and dword [ebp - 0x134], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp - 0x28]
add eax, 8
mov dword [ebp - 0x12c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x154]
call fcn.100167c0
jmp 0x10051d2c
jmp 0x10051d0b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x198]
call fcn.100167c0
mov dword [ebp - 0x18], 0xf6af1124
mov dword [ebp - 0x13c], 0xf3392002
mov dword [ebp - 0x48], 0
jmp 0x10051e95
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 3
jge 0x10051eab
mov eax, dword [ebp - 0x48]
mov dword [ebp + eax*4 - 0x1f0], 4
jmp 0x10051e8e
mov dword [ebp - 0x18], 0
jmp 0x10051ebb
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jl 0x1005207b
mov dword [ebp - 0xcc], 0x8cd54673
push 3
lea ecx, [ebp - 0x18c]
call fcn.1001673e
mov dword [ebp - 4], 7
mov dword [ebp - 0x1c], 0
jmp 0x10051ef3
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 2
jge 0x10051f09
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x174], 0
jmp 0x10051eec
mov dword [ebp - 0x1c], 0
jmp 0x10051f19
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 3
jge 0x10051f35
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x18c]
call fcn.100167dc
mov dword [eax], 0xd8f9c328
jmp 0x10051f12
mov byte [ebp - 0x29], 0
movzx eax, byte [ebp - 0x29]
test eax, eax
je 0x10051f4d
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
cmp dword [ebp - 0x18], 0
je 0x10052014
imul eax, dword [ebp - 0x18], 0
sub eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xcc]
jl 0x10051f72
mov dword [ebp - 0xc4], 1
jmp 0x10051f79
and dword [ebp - 0xc4], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0xc4]
sub ecx, dword [ebp + eax - 0x174]
cmp ecx, dword [ebp - 0x18]
jle 0x10051f9d
mov dword [ebp - 0xd4], 1
jmp 0x10051fa4
and dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0xcc]
cmp dword [ebp - 0xd4], eax
jne 0x10051fbe
mov dword [ebp - 0xdc], 1
jmp 0x10051fc5
and dword [ebp - 0xdc], 0
cmp dword [ebp - 0xdc], 0xa553fc2f
jbe 0x10051fdd
mov dword [ebp - 0xe4], 1
jmp 0x10051fe4
and dword [ebp - 0xe4], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x1f0]
add eax, dword [ebp - 0xe4]
neg eax
push 4
pop ecx
imul ecx, ecx, 0
cmp eax, dword [ebp + ecx - 0x174]
jl 0x10052014
mov dword [ebp - 0xec], 1
jmp 0x1005201b
and dword [ebp - 0xec], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0xec]
imul edx, dword [ebp - 0x13c]
imul ecx, edx
sub eax, ecx
cmp eax, 0x26d5
jle 0x10052049
mov dword [ebp - 0x118], 1
jmp 0x10052050
and dword [ebp - 0x118], 0
mov esi, 0x9c5a
add esi, 0xfffffffc
push 1
lea ecx, [ebp - 0x18c]
call fcn.100167dc
mov dword [eax], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18c]
call fcn.100167c0
jmp 0x10051eb4
mov dword [ebp - 0x50], 0
jmp 0x1005208b
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 1
jge 0x100520a1
mov eax, dword [ebp - 0x50]
mov dword [ebp + eax*4 - 0xf4], 0xfffffff7
jmp 0x10052084
push 3
lea ecx, [ebp - 0x180]
call fcn.1001673e
mov dword [ebp - 4], 8
push 2
lea ecx, [ebp - 0x1a4]
call fcn.1001673e
mov byte [ebp - 4], 9
mov dword [ebp - 0x58], 0x1f782a18
mov dword [ebp - 0x20], 0
jmp 0x100520dd
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
jge 0x100520f9
push dword [ebp - 0x20]
lea ecx, [ebp - 0x180]
call fcn.100167dc
mov dword [eax], 0xa53d06ce
jmp 0x100520d6
mov dword [ebp - 0x20], 0
jmp 0x10052109
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
jge 0x10052125
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1a4]
call fcn.100167dc
mov dword [eax], 7
jmp 0x10052102
push 2
lea ecx, [ebp - 0x180]
call fcn.100167dc
mov esi, eax
push 0
lea ecx, [ebp - 0x1a4]
call fcn.100167dc
mov ecx, dword [esi]
mov dword [eax], ecx
mov dword [ebp - 0x58], 0
jmp 0x10052155
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 1
jg 0x10052173
mov byte [ebp - 0x21], 0
movzx eax, byte [ebp - 0x21]
test eax, eax
je 0x10052171
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
jmp 0x1005214e
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1a4]
call fcn.100167c0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x180]
call fcn.100167c0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xf4]
dec eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0xf4], eax
jmp 0x10051c9d
jmp 0x100521bb
push 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret