Function at 0x10005920
Capabilities:
Check for time delay via gettickcount
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x1000f014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov esi, ecx
call ebx
mov dx, word [esi + 8]
mov cx, word [esi + 4]
add dx, 2
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add cx, 7
mov dword [ebp - 0x34], eax
movzx eax, dx
movzx ecx, cx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push 0
push 8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push dword [esi + 0x50]
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
movups xmmword [ebp - 0x2c], xmm0
call edi
mov eax, dword [ebp - 0x18]
test al, al
js 0x1000599a
test al, 8
jne 0x100059c5
test al, 1
jne 0x100059ad
call ebx
sub eax, dword [ebp - 0x34]
cmp eax, dword [ebp + 0xc]
ja 0x10005bcd
mov ecx, dword [ebp - 0x1c]
jmp 0x10005962
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100091f8
mov esp, ebp
pop ebp
ret 8
movzx eax, word [esi + 8]
xorps xmm0, xmm0
mov dword [ebp - 0xc], eax
mov al, byte [ebp + 8]
shl al, 3
movzx eax, al
or eax, 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push eax
push dword [esi + 0x50]
movups xmmword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x38]
xorps xmm0, xmm0
movzx eax, ax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], 0
push eax
push dword [esi + 0x50]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 1
call edi
mov eax, dword [ebp - 0x18]
mov cl, al
shr cl, 2
and cl, 1
test al, 1
je 0x10005ad9
cmp cl, 1
je 0x10005ad9
mov eax, dword [ebp - 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 8
lea eax, [ebp - 0xc]
mov dword [ebp - 0x30], 0
push eax
push dword [esi + 0x50]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0xc], 1
call edi
mov al, byte [ebp - 0xc]
and al, 0x89
cmp al, 1
je 0x100059ad
call ebx
sub eax, dword [ebp - 0x34]
cmp eax, dword [ebp + 0xc]
ja 0x10005bcd
mov ecx, dword [ebp - 0x38]
xorps xmm0, xmm0
movzx eax, cx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], 0
push eax
push dword [esi + 0x50]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 1
call edi
mov eax, dword [ebp - 0x18]
mov cl, al
shr cl, 2
and cl, 1
test al, 1
jne 0x10005a47
mov eax, dword [ebp - 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], 0
push eax
push dword [esi + 0x50]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 1
call edi
test byte [ebp - 0x18], 0x88
je 0x10005b50
nop dword [eax + eax]
call ebx
sub eax, dword [ebp - 0x34]
cmp eax, dword [ebp + 0xc]
ja 0x10005bcd
mov eax, dword [ebp - 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], 0
push eax
push dword [esi + 0x50]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 1
call edi
test byte [ebp - 0x18], 0x88
jne 0x10005b10
mov ecx, dword [ebp - 0x38]
xorps xmm0, xmm0
movzx eax, cx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 8
lea eax, [ebp - 0xc]
mov dword [ebp - 0x30], 0
push eax
push dword [esi + 0x50]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0xc], 1
call edi
mov eax, dword [ebp - 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], 0
push eax
push dword [esi + 0x50]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 1
call edi
test byte [ebp - 0xc], 2
jne 0x10005bcd
movzx eax, byte [ebp - 0x18]
pop edi
and eax, 1
pop esi
add eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100091f8
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100091f8
mov esp, ebp
pop ebp
ret 8