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

Disassembly:
push ebp
lea ebp, [esp - 0x61c]
sub esp, 0x61c
push 0xfffffffffffffffe
push 0x10184910
push 0x10132540
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x10189710]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x618], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0x624]
mov dword [ebp - 0x24], eax
mov edi, ecx
mov dword [ebp - 0x40], edi
mov esi, edx
mov dword [ebp - 0x1c], esi
wait
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xe0], ebx
push 0x7c
push ebx
lea ecx, [ebp - 0xdc]
push ecx
call fcn.1012e060
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x4c], ebx
cmp esi, ebx
je 0x10024340
mov byte [esi], bl
cmp edi, ebx
je 0x100243e5
cmp byte [edi], bl
je 0x100243e5
push 0x80
push 4
push 1
push bind
mov edi, dword [ebp - 0x24]
call fcn.1005aa40
add esp, 0x10
mov esi, eax
mov dword [ebp - 0x30], esi
cmp esi, 0xffffffff
jne 0x100243fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x1002439a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x3c]
cmp eax, 0xea60
jbe 0x100243eb
push 0x20
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, 0xffffffff
jne 0x100243fa
mov byte [ebp + 0x104], bl
push 0x103
push ebx
lea edx, [ebp + 0x105]
push edx
call fcn.1012e060
push 0x104
lea esi, [ebp + 0x104]
call fcn.10065360
add esp, 0x10
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x100243e5
mov ecx, esi
push ecx
mov edx, edi
push edx
push str.Unable_to_lock__s__Reason:__s
push eax
call fcn.10127dc0
add esp, 0x10
wait
jmp 0x100248f4
mov esi, 0x14
call fcn.1005a8b0
jmp 0x10024350
push 1
push 0x2c
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp]
push ecx
xor cl, cl
mov edi, dword [ebp - 0x40]
mov edx, edi
call fcn.10061f00
mov esi, dword [ebp - 0x4c]
add esp, 0x10
cmp dword [ebp - 0x38], 0xffffffff
je 0x10024455
lea edx, [ebp]
push edx
call fcn.10128238
add esp, 4
cmp eax, ebx
jle 0x1002443e
cmp esi, 0x20
jge 0x1002443e
mov dword [ebp + esi*4 - 0xe0], eax
inc esi
mov dword [ebp - 0x4c], esi
push 1
push 0x2c
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp]
push ecx
xor cl, cl
mov edx, edi
call fcn.10061f00
jmp 0x10024415
lea edx, [ebp - 0x2c]
mov edi, dword [ebp - 0x24]
mov eax, edi
call fcn.1007a4d0
mov dword [ebp - 0x54], eax
mov esi, dword [ebp - 0x2c]
cmp esi, ebx
jne 0x100244bf
mov byte [ebp + 0x30c], bl
push 0x103
push ebx
lea edx, [ebp + 0x30d]
push edx
call fcn.1012e060
push 0x104
lea esi, [ebp + 0x30c]
call fcn.10065360
add esp, 0x10
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x100244b0
mov ecx, esi
push ecx
push edi
push str.Error_Reading__s__Reason:__s
push eax
call fcn.10127dc0
add esp, 0x10
lea edx, [ebp - 0x30]
push edx
call fcn.10082e10
wait
jmp 0x100248f4
cmp eax, ebx
jne 0x100244f1
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x100244d9
push edi
push str.MemAlloc_Error_of__s_
push eax
call fcn.10127dc0
add esp, 0xc
push esi
call fcn.10128243
add esp, 4
lea eax, [ebp - 0x30]
push eax
call fcn.10082e10
wait
jmp 0x100248f4
mov ecx, edi
lea edx, [ebp + 0x514]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x10024500
lea edi, [ebp + 0x514]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10024511
mov ecx, dword [0x1015cb5c]
mov dword [edi], ecx
lea edx, [ebp + 0x514]
push edx
mov eax, 0x10157a1c
call fcn.100745f0
add esp, 4
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, ebx
jne 0x10024563
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x1002455a
lea ecx, [ebp + 0x514]
push ecx
push str.Error_opening_tempfile__s_
push eax
call fcn.10127dc0
add esp, 0xc
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x100244da
mov ecx, dword [ebp - 0x24]
lea edx, [ebp + 0x410]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x10024570
lea edi, [ebp + 0x410]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10024581
mov ecx, dword [0x1015cb7c]
mov dword [edi], ecx
lea edx, [ebp + 0x410]
push edx
mov eax, 0x10157a1c
call fcn.100745f0
add esp, 4
mov dword [ebp - 0x34], eax
cmp eax, ebx
jne 0x100245f4
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x100245c8
lea ecx, [ebp + 0x410]
push ecx
push str.Error_opening_tempfile__s_
push eax
call fcn.10127dc0
add esp, 0xc
push esi
call fcn.10129ad3
lea eax, [ebp + 0x514]
call fcn.1005ad10
mov edx, dword [ebp - 0x2c]
push edx
call fcn.10128243
add esp, 8
lea eax, [ebp - 0x30]
push eax
call fcn.10082e10
wait
jmp 0x100248f4
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x44], ebx
lea ecx, [ebp - 0x5c]
push ecx
push str.LastCacheLine
mov ecx, str.SOFTWAREMicroWorld
mov edx, reloc.WS2_32.dll_bind
call fcn.10059e30
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x50], ebx
mov esi, dword [ebp - 0x2c]
lea edx, [ebp - 0x1d]
push edx
lea eax, [ebp - 0x1e]
push eax
lea ecx, [ebp - 0x50]
push ecx
lea ebx, [ebp - 0x40]
lea edi, [ebp - 0x3c]
call fcn.1005ca60
mov edi, eax
test edi, edi
je 0x10024728
mov ebx, 1
add dword [ebp - 0x44], ebx
cmp byte [edi], 0
je 0x10024721
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x5c]
jbe 0x10024721
test byte [0x101cd9d0], bl
jne 0x10024686
or dword [0x101cd9d0], ebx
mov eax, 0x101a4164
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10024678
sub eax, edx
mov dword [0x101cd9cc], eax
xor esi, esi
mov dword [ebp - 0x60], esi
lea ecx, [esi + 5]
mov edx, edi
call fcn.1001cd40
xor ecx, ecx
mov dword [ebp - 0x38], ecx
cmp ecx, 0x20
jge 0x100246b7
mov edx, dword [ebp + ecx*4 - 0xe0]
test edx, edx
je 0x100246b7
cmp edx, eax
jne 0x100246b3
mov dword [ebp - 0x60], ebx
jmp 0x100246bb
add ecx, ebx
jmp 0x10024697
test esi, esi
je 0x100246ee
cmp dword [ebp - 0x48], 0
je 0x100246c4
mov dword [ebp - 0x58], ebx
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100246d0
sub eax, edx
mov esi, dword [ebp - 0x28]
push esi
push eax
push ebx
push edi
call fcn.1012ad69
push esi
mov eax, dword [0x101cd9cc]
push eax
jmp 0x10024713
mov dword [ebp - 0x48], ebx
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100246f6
sub eax, edx
mov esi, dword [ebp - 0x34]
push esi
push eax
push ebx
push edi
call fcn.1012ad69
push esi
mov ecx, dword [0x101cd9cc]
push ecx
push ebx
push 0x101a4164
call fcn.1012ad69
add esp, 0x20
xor esi, esi
jmp 0x10024624
cmp dword [ebp - 0x58], 0
je 0x10024899
mov edx, dword [ebp - 0x34]
push edx
call fcn.10129ad3
mov dword [ebp - 0x34], 0
lea eax, [ebp + 0x410]
push eax
xor ecx, ecx
lea edx, [ebp - 0x34]
call fcn.1007a110
add esp, 8
mov edi, eax
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x10024775
mov ecx, dword [ebp - 0x28]
push ecx
push edi
push 1
push esi
call fcn.1012ad69
push esi
call fcn.10128243
add esp, 0x14
mov edx, dword [ebp - 0x28]
push edx
call fcn.10129ad3
add esp, 4
lea eax, [ebp - 0x30]
push eax
call fcn.10082e10
test edi, edi
jbe 0x1002487b
push 0
mov edi, dword [ebp - 0x24]
lea ebx, [ebp + 0x514]
call fcn.1007fb10
add esp, 4
test eax, eax
jne 0x100247fb
mov byte [ebp + 0x208], al
push 0x103
push eax
lea ecx, [ebp + 0x209]
push ecx
call fcn.1012e060
push 0x104
lea esi, [ebp + 0x208]
call fcn.10065360
add esp, 0x10
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100248b7
mov edx, esi
push edx
mov ecx, edi
push ecx
mov edx, ebx
push edx
push str.Unable_to_copy__s_to__s__Reason:__s
push eax
call fcn.10127dc0
add esp, 0x14
jmp 0x100248b7
mov dword [ebp - 0x28], 0
mov esi, str.LastCacheLine
mov ecx, str.SOFTWAREMicroWorld
mov edx, reloc.WS2_32.dll_bind
call fcn.10064b80
push 0
push 0
lea edx, [ebp - 0x28]
mov esi, edi
mov ecx, esi
call fcn.10060eb0
add esp, 8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100248b7
mov ecx, dword [ebp - 0x28]
fild dword [ebp - 0x28]
test ecx, ecx
jge 0x10024844
fadd qword [0x1017f1d8]
fld qword [0x1017f250]
fmul st(1), st(0)
sub esp, 0x10
fxch st(1)
fstp qword [esp + 8]
mov edx, dword [ebp - 0x54]
fild dword [ebp - 0x54]
test edx, edx
jge 0x10024865
fadd qword [0x1017f1d8]
fmulp st(1)
fstp qword [esp]
push esi
push str.Re_written_sorted__s__Earlier_Size:__.2f_MB__New_Size:__.2f_MB_
push eax
call fcn.10127dc0
add esp, 0x1c
jmp 0x100248b7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100248b7
lea ecx, [ebp + 0x410]
push ecx
push str.Unable_to_read_file__s
push eax
call fcn.10127dc0
add esp, 0xc
jmp 0x100248b7
mov edx, dword [ebp - 0x28]
push edx
call fcn.10129ad3
mov eax, dword [ebp - 0x34]
push eax
call fcn.10129ad3
add esp, 8
lea ecx, [ebp - 0x30]
push ecx
call fcn.10082e10
lea eax, [ebp + 0x514]
call fcn.1005ad10
lea eax, [ebp + 0x410]
call fcn.1005ad10
mov edx, dword [ebp - 0x2c]
push edx
call fcn.10128243
add esp, 4
wait
jmp 0x100248f4
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x618]
xor ecx, ebp
call fcn.10127db1
add ebp, 0x61c
mov esp, ebp
pop ebp
ret