Function at 0x412380
Capabilities:
Check for time delay via gettickcount
Get number of processors
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44e631
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x464140]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x464140]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov esi, ecx
mov dword [esp + 0x30], eax
mov eax, dword [esi]
call dword [eax + 0x58]
xor ebx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
cmp edx, ebx
jg 0x412405
jl 0x4123e3
cmp eax, ebx
ja 0x412405
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00438e18
mov esp, ebp
pop ebp
ret 0xc
cmp edi, ebx
je 0x41241e
push dword [esp + 0x30]
push edx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call edi
add esp, 0x24
test eax, eax
je 0x4123e3
push 0x4588fc
push dword [esp + 0x30]
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], ebx
call fcn.0043bb41
add esp, 0xc
cmp dword [esp + 0x1c], ebx
je 0x4123e3
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov dword [esp + 0x60], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x20], eax
jmp 0x412541
cmp edi, ebx
je 0x41247f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x41248e
lea eax, [esp + 0x34]
push dword [esp + 0x1c]
push dword [esp + 0x48]
push 1
push eax
call fcn.0043bcdf
mov eax, dword [esp + 0x54]
cdq
add esp, 0x10
add dword [esp + 0x14], eax
adc dword [esp + 0x18], edx
cmp edi, ebx
je 0x41252b
cmp dword [esp + 0x20], ebx
jbe 0x4124cc
mov eax, dword [esp + 0x44]
imul eax, eax, 0x3e8
xor edx, edx
div dword [esp + 0x20]
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x4124db
lea eax, [esp + 0x34]
push dword [esp + 0x30]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x58]
push eax
push dword [esp + 0x48]
push ebx
push 0x64
push dword [esp + 0x40]
push dword [esp + 0x40]
call fcn.00446bd0
push dword [esp + 0x48]
push dword [esp + 0x48]
push edx
push eax
call fcn.00446a60
push eax
call edi
add esp, 0x24
test eax, eax
je 0x41257a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x28]
jg 0x412555
jl 0x412541
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x24]
jae 0x412555
mov eax, dword [esi]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call dword [eax + 0x50]
test eax, eax
jne 0x41246d
push dword [esp + 0x1c]
call fcn.0043bdc6
mov eax, dword [esp + 0x1c]
pop ecx
cmp eax, dword [esp + 0x28]
jl 0x412598
jg 0x412575
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x24]
jb 0x412598
xor ebx, ebx
inc ebx
jmp 0x412584
push dword [esp + 0x1c]
call fcn.0043bdc6
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x38]
call fcn.0040138b
mov eax, ebx
jmp 0x4123e5
cmp edi, ebx
je 0x412584
push dword [esp + 0x30]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push eax
push dword [esp + 0x24]
push ebx
push ebx
push ebx
push 0xffffffffffffffff
call edi
add esp, 0x24
jmp 0x412584