Function at 0x101325e
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [reloc.msvcrt.dll___p__commode]
and word [ebp - 0x20c], 0
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcscpy]
push edi
push 0x19
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
push 0x68
lea edi, reloc.msvcrt.dll___p__commode
rep stosd dword es:[edi], eax
pop ecx
lea edi, reloc.msvcrt.dll___p__commode
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, reloc.msvcrt.dll___p__commode
push 0x101a9ce
push eax
call esi
lea eax, reloc.msvcrt.dll___p__commode
push 0x101aa9a
push eax
call esi
lea eax, [ebp - 0xdc]
push 0x1002120
push eax
call esi
add esp, 0x18
call fcn.01008d67
lea eax, reloc.msvcrt.dll___p__commode
push eax
call fcn.01008ef7
test eax, eax
mov esi, dword [reloc.msvcrt.dll___p__commode]
mov edi, dword [reloc.msvcrt.dll___p__commode]
je 0x10131f9
push dword [ebp - 0x220]
push dword [ebp - 0x224]
push esi
push edi
call fcn.01017fa0
mov dword [reloc.msvcrt.dll___p__commode], eax
mov dword [reloc.msvcrt.dll___p__commode], edx
jmp 0x101320d
mov eax, dword [reloc.msvcrt.dll___p__commode]
mov dword [reloc.msvcrt.dll___p__commode], eax
mov eax, dword [reloc.msvcrt.dll___p__commode]
mov dword [reloc.msvcrt.dll___p__commode], eax
mov ebx, dword [reloc.msvcrt.dll___p__commode]
push esi
push edi
push ebx
push dword [0x101a208]
call fcn.01017fa0
push esi
push edi
push dword [0x101a214]
mov dword [ebp - reloc.msvcrt.dll___p__commode], eax
push dword [0x101a210]
mov dword [ebp - reloc.msvcrt.dll___p__commode], edx
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xb0], esi
call fcn.01017fa0
mov dword [ebp - 0xac], eax
mov eax, dword [reloc.msvcrt.dll___p__commode]
sub eax, dword [reloc.msvcrt.dll___p__commode]
push esi
mov ecx, ebx
sbb ecx, dword [0x101a214]
push edi
push ecx
push eax
mov dword [ebp - 0xa8], edx
mov dword [ebp - reloc.msvcrt.dll___p__commode], eax
mov dword [ebp - reloc.msvcrt.dll___p__commode], ecx
call fcn.01017fa0
mov esi, dword [reloc.msvcrt.dll___p__commode]
mov dword [ebp - 0xa4], eax
mov eax, esi
or eax, ebx
mov dword [ebp - 0xa0], edx
jne 0x10132bd
push 0x1542
push 0x100372c
push 0x10036c8
call fcn.01007320
jmp 0x1013505
xor edi, edi
push edi
push 0x64
push dword [ebp - 0x210]
push dword [ebp - 0x214]
call fcn.01017fa0
push ebx
push esi
push edx
push eax
call fcn.01018000
mov ecx, dword [reloc.msvcrt.dll___p__commode]
push edi
push 0x64
mov dword [ebp - 0x9c], eax
mov eax, dword [reloc.msvcrt.dll___p__commode]
push ecx
push eax
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], ecx
call fcn.01017fa0
push dword [ebp - 0x218]
push dword [ebp - 0x21c]
push edx
push eax
call fcn.01018000
mov dword [ebp - 0x8c], eax
mov eax, dword [reloc.msvcrt.dll___p__commode]
mov dword [ebp - 0x84], eax
mov eax, dword [reloc.msvcrt.dll___p__commode]
mov dword [ebp - 0x80], eax
mov eax, dword [reloc.msvcrt.dll___p__commode]
cmp eax, edi
mov dword [ebp - 0x88], edx
jl 0x1013358
mov ecx, dword [reloc.msvcrt.dll___p__commode]
jg 0x1013350
cmp ecx, edi
jbe 0x1013358
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], eax
jmp 0x101335e
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
mov eax, dword [reloc.msvcrt.dll___p__commode]
xor edx, edx
inc edx
cmp eax, edi
jl 0x101337e
mov ecx, dword [reloc.msvcrt.dll___p__commode]
jg 0x1013376
cmp ecx, edx
jbe 0x101337e
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], eax
jmp 0x1013384
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], edi
mov ecx, dword [reloc.msvcrt.dll___p__commode]
cmp ecx, edi
jl 0x10133a1
mov eax, dword [reloc.msvcrt.dll___p__commode]
jg 0x1013399
cmp eax, edx
jbe 0x10133a1
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], ecx
jmp 0x10133a7
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], edi
mov ecx, dword [reloc.msvcrt.dll___p__commode]
cmp ecx, edi
jl 0x10133c4
mov eax, dword [reloc.msvcrt.dll___p__commode]
jg 0x10133bc
cmp eax, edi
jbe 0x10133c4
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ecx
jmp 0x10133ca
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov eax, dword [reloc.msvcrt.dll___p__commode]
mov esi, dword [reloc.msvcrt.dll___p__commode]
mov ebx, dword [reloc.msvcrt.dll___p__commode]
mov dword [ebp - 0x54], eax
mov eax, dword [reloc.msvcrt.dll___p__commode]
mov dword [ebp - 0x50], eax
mov eax, dword [reloc.msvcrt.dll___p__commode]
cmp eax, edi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], ebx
jl 0x1013409
mov ecx, dword [reloc.msvcrt.dll___p__commode]
jg 0x1013401
cmp ecx, edi
jbe 0x1013409
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], eax
jmp 0x101340f
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov eax, dword [reloc.msvcrt.dll___p__commode]
cmp eax, edi
mov ecx, dword [reloc.msvcrt.dll___p__commode]
jl 0x101342c
jg 0x1013424
cmp ecx, edi
jbe 0x101342c
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], eax
jmp 0x1013432
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov edx, dword [reloc.msvcrt.dll___p__commode]
mov dword [ebp - 0x3c], edx
mov edx, dword [reloc.msvcrt.dll___p__commode]
mov dword [ebp - 0x38], edx
mov edx, esi
or edx, ebx
je 0x1013467
push edi
add ecx, esi
push 0x64
adc eax, ebx
push eax
push ecx
call fcn.01017fa0
push ebx
push esi
push edx
push eax
call fcn.01018000
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov eax, dword [reloc.msvcrt.dll___p__commode]
mov dword [ebp - 0x2c], eax
mov eax, dword [reloc.msvcrt.dll___p__commode]
mov dword [ebp - 0x28], eax
mov eax, dword [reloc.msvcrt.dll___p__commode]
mov dword [ebp - 0x24], eax
mov eax, dword [reloc.msvcrt.dll___p__commode]
mov dword [ebp - 0x20], eax
mov eax, dword [reloc.msvcrt.dll___p__commode]
mov dword [ebp - 0x1c], eax
mov eax, dword [reloc.msvcrt.dll___p__commode]
mov dword [ebp - 0x18], eax
mov eax, dword [reloc.msvcrt.dll___p__commode]
mov dword [ebp - 0x14], eax
mov eax, dword [reloc.msvcrt.dll___p__commode]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - reloc.msvcrt.dll___p__commode]
or eax, dword [ebp - reloc.msvcrt.dll___p__commode]
je 0x10134e9
mov eax, dword [reloc.msvcrt.dll___p__commode]
mov ecx, dword [reloc.msvcrt.dll___p__commode]
mov edx, eax
or edx, ecx
je 0x10134e9
push edi
push 0x64
push ecx
push eax
call fcn.01017fa0
push dword [ebp - 0x210]
push dword [ebp - 0x214]
push edx
push eax
call fcn.01018000
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
push dword [0x1025820]
lea eax, reloc.msvcrt.dll___p__commode
push 0x208
push eax
push 0x200f
call fcn.01005c52
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01017c5b
leave
ret