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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x444
push ebx
push esi
push edi
mov esi, ecx
xor eax, eax
mov byte [esp + 0x148], 0
mov ecx, 0x40
lea edi, [esp + 0x149]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x40], 0
mov ecx, 0x40
lea edi, [esp + 0x41]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00401d50
test eax, eax
jne 0x402888
mov edx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x103
lea ecx, [esp + 0x14c]
push ecx
push 0x7b
push edx
call edi
test eax, eax
je 0x402876
mov ecx, dword [esi]
push 0x103
lea eax, [esp + 0x44]
push eax
push 0x70
push ecx
call edi
test eax, eax
je 0x402876
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x150]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
je 0x402b36
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.00401d50
test eax, eax
je 0x402821
jmp 0x40288e
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [ebp + 8]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x4028c9
push 0x103
lea ecx, [esp + 0x14c]
push ecx
push 0x6f
jmp 0x402aff
push 0
push 0
push 0
push 0
push 0
push 0
push 0x40d1e0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x402949
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
push 0x103
lea edx, [esp + 0x14c]
push edx
push 0x72
push eax
call edi
test eax, eax
je 0x402b36
mov edx, dword [esi]
push 0x103
lea ecx, [esp + 0x44]
push ecx
push 0x70
push edx
call edi
test eax, eax
je 0x402b36
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x150]
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esi + 4]
push 0x64
push ebx
push 0x449
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
xor edi, edi
test eax, eax
jbe 0x402a7c
mov eax, dword [esi + 0x328]
test eax, eax
je 0x40298f
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x328]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x214]
test eax, eax
jne 0x402ab7
mov edx, dword [esi + 0x210]
push 0
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
push 0x1c
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x260]
push 0x1c
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 2
push ecx
mov dword [esp + 0x4c], 1
mov dword [esp + 0x48], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402b41
test byte [esp + 0x3c], 1
jne 0x402b41
mov ecx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x24]
push edx
push 0x200
lea eax, [esp + 0x25c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402ad6
add ebx, 0x200
mov edx, ebx
shr edx, 9
test edx, edx
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
jge 0x402a37
fadd dword [0x40d1dc]
mov eax, dword [esp + 0x18]
fild dword [esp + 0x18]
test eax, eax
jge 0x402a49
fadd dword [0x40d1dc]
fdivp st(1)
fmul dword [0x40d1d8]
call fcn.00403ddc
mov edx, dword [esi + 4]
mov ecx, 0x64
sub ecx, eax
push ecx
push 0
push 0x449
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jb 0x402971
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
call edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 4]
push 0
push 0
push 0x449
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
call edi
push 0x103
lea ecx, [esp + 0x14c]
push ecx
push 0x6f
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov edx, dword [esi]
push edx
call edi
test eax, eax
je 0x402b36
mov ecx, dword [esi]
push 0x103
lea eax, [esp + 0x44]
push eax
push 0x70
push ecx
call edi
test eax, eax
je 0x402b36
mov ecx, dword [esi + 4]
push 0
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x150]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
call edi
push 0x103
lea ecx, [esp + 0x14c]
push ecx
push 0x74
jmp 0x402af9