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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
cmp dword [ebp + 0x10], 0
je 0x403b10
mov dword [ebp - 0x6c], ebx
mov esi, dword [ebp + 0x10]
jmp 0x403b1c
mov dword [ebp - 0x6c], 0x8000
mov esi, 0x419c50
test eax, eax
js 0x403b2f
add eax, dword [0x430838]
mov dword [esp], eax
call fcn.00403abf
push eax
mov dword [esp + 4], 4
lea eax, [ebp - 0x60]
mov dword [esp], eax
call fcn.00403a74
push edi
push edi
test eax, eax
jne 0x403b4d
jmp 0x403d67
mov eax, dword [ebp - 0x60]
test eax, eax
jns 0x403d0a
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 0x74], eax
mov dword [0x421c60], 8
mov dword [0x42217c], 0
mov dword [0x422178], 0
mov dword [0x42b808], 0x423800
mov dword [0x42b804], 0x423800
mov dword [0x42b800], 0x42b800
mov edx, dword [ebp - 0x60]
and edx, 0x7fffffff
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x60], edx
xor ebx, ebx
jmp 0x403cf0
mov edi, edx
cmp edx, 0x4000
jle 0x403bc1
mov edi, 0x4000
mov dword [esp + 4], edi
mov dword [esp], 0x415c50
call fcn.00403a74
push ecx
push ecx
test eax, eax
je 0x403d67
mov dword [0x421c50], 0x415c50
mov dword [0x421c54], edi
sub dword [ebp - 0x60], edi
mov dword [0x421c58], esi
mov edx, dword [ebp - 0x6c]
mov dword [0x421c5c], edx
mov dword [esp], 0x421c50
call fcn.004088a5
push edx
mov dword [ebp - 0x78], eax
test eax, eax
js 0x403d00
mov edi, dword [0x421c58]
sub edi, esi
call sub.KERNEL32.dll_GetTickCount
mov ecx, eax
test byte [0x4307f0], 1
je 0x403c91
sub eax, dword [ebp - 0x74]
cmp eax, 0xc8
ja 0x403c3d
cmp dword [ebp - 0x60], 0
jne 0x403c91
mov edx, dword [ebp - 0x70]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x64
mov eax, edx
sub eax, dword [ebp - 0x60]
mov dword [esp], eax
mov dword [ebp - 0x7c], ecx
call sub.KERNEL32.dll_MulDiv
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], str....__d__
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.USER32.dll_wsprintfA
lea edx, [ebp - 0x58]
mov dword [esp + 4], edx
mov dword [esp], 0
call fcn.00406c15
push eax
push eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x74], ecx
test edi, edi
je 0x403cf0
cmp dword [ebp + 0x10], 0
jne 0x403cd6
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x5c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
test eax, eax
je 0x403d6e
cmp dword [ebp - 0x5c], edi
je 0x403cd2
jmp 0x403d6e
add ebx, edi
jmp 0x403ce1
add ebx, edi
sub dword [ebp - 0x6c], edi
mov esi, dword [0x421c58]
cmp dword [ebp - 0x78], 1
jne 0x403bee
jmp 0x403d9e
mov edx, dword [ebp - 0x60]
test edx, edx
jg 0x403bb2
jmp 0x403d9e
mov ebx, 0xfffffffc
jmp 0x403d9e
cmp dword [ebp + 0x10], 0
jne 0x403d83
jmp 0x403d75
mov edi, dword [ebp - 0x6c]
cmp edi, eax
jle 0x403d1b
mov edi, eax
mov dword [esp + 4], edi
mov dword [esp], 0x415c50
call fcn.00403a74
push ecx
push ecx
test eax, eax
je 0x403d67
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], 0x415c50
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
test eax, eax
je 0x403d6e
cmp edi, dword [ebp - 0x5c]
jne 0x403d6e
add ebx, edi
sub dword [ebp - 0x60], edi
jmp 0x403d7a
mov ebx, 0xfffffffd
jmp 0x403d9e
mov ebx, 0xfffffffe
jmp 0x403d9e
xor ebx, ebx
lea esi, [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
test eax, eax
jg 0x403d12
jmp 0x403d9e
cmp ebx, eax
jle 0x403d89
mov ebx, eax
mov dword [esp + 4], ebx
mov edx, dword [ebp + 0x10]
mov dword [esp], edx
call fcn.00403a74
push edx
push edx
test eax, eax
je 0x403d67
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10