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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x519008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x54], eax
mov esi, ecx
movzx eax, word [eax]
push eax
push 0
push ebx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], ebx
call fcn.00405490
mov eax, dword [esi + 0xb8]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x4394bb
cmp eax, 8
lea eax, [ebp - 0x10]
push eax
jne 0x43947c
call edi
push dword [0x51dbec]
mov eax, dword [esi + 0xcc]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [0x51dbf0]
push dword [0x51dbe8]
mov edi, dword [esi + 0xc8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
sbb eax, dword [0x51dbf4]
push eax
push ecx
call fcn.004fce10
mov ecx, eax
mov eax, dword [ebp - 0x18]
cmp edx, eax
jb 0x4394b5
ja 0x4393e1
cmp ecx, edi
jb 0x4394b5
mov cl, byte [esi + 0xbc]
add edi, 0x7d0
mov dword [esi + 0xc8], edi
adc eax, 0
mov word [esi + 0xbd], 0
add cl, 1
mov dword [esi + 0xcc], eax
mov byte [esi + 0xbc], cl
cmp cl, 3
je 0x439418
cmp cl, 0xc
jne 0x439434
add edi, 0xbb8
mov byte [esi + 0xbd], 0xa
mov dword [esi + 0xc8], edi
adc eax, 0
mov dword [esi + 0xcc], eax
cmp cl, 0xb
je 0x43943e
cmp cl, 0xd
jne 0x43945c
add edi, 0xbb8
mov word [esi + 0xbd], 0x10a
mov dword [esi + 0xc8], edi
adc eax, 0
mov dword [esi + 0xcc], eax
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp cl, 0x13
jb 0x4394bb
mov eax, dword [esi + 0xc0]
mov dword [esi + 0xb8], 0
mov dword [esi + 0xc], eax
jmp 0x4394bb
call edi
push dword [0x51dbec]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [0x51dbf0]
push dword [0x51dbe8]
mov eax, dword [ebp - 0xc]
sbb eax, dword [0x51dbf4]
push eax
push ecx
call fcn.004fce10
cmp edx, dword [esi + 0xcc]
jb 0x4394bb
ja 0x439467
cmp eax, dword [esi + 0xc8]
jmp 0x439465
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp dword [esi + 0xc], 0x15
jne 0x439519
lea eax, [ebp - 0x10]
push eax
call edi
push dword [0x51dbec]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [0x51dbf0]
push dword [0x51dbe8]
mov eax, dword [ebp - 0xc]
sbb eax, dword [0x51dbf4]
push eax
push ecx
call fcn.004fce10
cmp edx, dword [esi + 0xfc]
jb 0x439519
ja 0x4394fe
cmp eax, dword [esi + 0xf8]
jbe 0x439519
mov dword [esi + 0xf8], 0
mov dword [esi + 0xfc], 0
mov dword [esi + 0xc], 2
cmp dword [esi + 0xf4], 0
ja 0x43952b
cmp dword [esi + 0xf0], 0
jbe 0x43958a
lea eax, [ebp - 0x10]
mov dword [esi + 0xc], 0x16
push eax
call edi
push dword [0x51dbec]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [0x51dbf0]
push dword [0x51dbe8]
mov eax, dword [ebp - 0xc]
sbb eax, dword [0x51dbf4]
push eax
push ecx
call fcn.004fce10
cmp edx, dword [esi + 0xf4]
jb 0x43958a
ja 0x43956f
cmp eax, dword [esi + 0xf0]
jb 0x43958a
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 0
mov dword [esi + 0xc], 2
cmp dword [esi + 0x104], 0
ja 0x4395a0
cmp dword [esi + 0x100], 0
jbe 0x439620
lea eax, [ebp - 0x10]
push eax
call edi
push dword [0x51dbec]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [0x51dbf0]
push dword [0x51dbe8]
mov eax, dword [ebp - 0xc]
sbb eax, dword [0x51dbf4]
push eax
push ecx
call fcn.004fce10
mov ecx, eax
cmp edx, dword [esi + 0x104]
jb 0x439620
ja 0x4395df
cmp ecx, dword [esi + 0x100]
jb 0x439620
inc byte [esi + 0x108]
cmp byte [esi + 0x108], 5
jb 0x43960b
mov byte [esi + 0x108], 5
mov dword [esi + 0x100], 0
mov dword [esi + 0x104], 0
jmp 0x439620
add ecx, 0x3e8
mov dword [esi + 0x100], ecx
adc edx, 0
mov dword [esi + 0x104], edx
mov word [ebx], 0x5a23
mov byte [ebx + 2], 0
movzx eax, byte [esi + 0xc]
mov byte [ebx + 3], al
mov dword [ebx + 4], 0
mov byte [ebx + 8], 0
mov al, byte [esi + 8]
shl al, 5
mov byte [ebx + 9], al
cmp byte [esi + 4], 0
je 0x43964f
or al, 0x10
mov byte [ebx + 9], al
mov byte [ebx + 0xa], 0
lea edi, [ebx + 0xb]
cmp byte [ebx + 1], 0x42
jne 0x4396b8
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov ecx, dword [esi + 0xa4]
test ecx, ecx
je 0x4396b1
cmp word [ecx], ax
je 0x43968c
inc eax
cmp word [ecx + eax*2], 0
jne 0x439684
lea edx, [eax + eax]
xor ecx, ecx
test edx, edx
je 0x4396b1
jmp 0x4396a0
mov eax, dword [esi + 0xa4]
mov al, byte [eax + ecx*2]
mov byte [edi + ecx], al
inc ecx
cmp ecx, edx
jb 0x4396a0
mov edx, 0x2b
jmp 0x43971f
push 0x40
push 0
push edi
call fcn.00405490
mov eax, dword [esi + 0xa4]
add esp, 0xc
test eax, eax
je 0x43971a
xor ecx, ecx
cmp word [eax], cx
je 0x4396de
inc ecx
cmp word [eax + ecx*2], 0
jne 0x4396d6
mov dl, 0
and ecx, 0x7fffffff
jbe 0x43971a
xor ebx, ebx
lea ebx, [ebx]
mov eax, dword [esi + 0xa4]
lea edi, [edi + 2]
inc dl
movzx eax, byte [eax + ebx*2]
mov byte [edi - 2], al
mov eax, dword [esi + 0xa4]
movzx eax, byte [eax + ebx*2 + 1]
movzx ebx, dl
mov byte [edi - 1], al
cmp ebx, ecx
jb 0x4396f0
mov ebx, dword [ebp - 0x4c]
mov edx, 0x4b
mov dword [ebp - 0x48], 0
lea esi, [ebp - 0x48]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 6
lea ecx, [ecx]
xor cl, cl
xor eax, eax
lea edi, [eax + 8]
cmp byte [esi + eax], 0
je 0x439793
movzx ecx, cl
bts ecx, eax
inc eax
sub edi, 1
jne 0x439787
mov byte [ebx + edx], cl
add esi, 8
inc edx
sub dword [ebp - 0x18], 1
jne 0x439780
mov esi, dword [ebp - 0x50]
xor cl, cl
mov dword [ebx + edx], 0x47300003
xor ch, ch
mov byte [ebx + edx + 4], 0x42
mov byte [ebp - 0x11], cl
mov al, byte [esi + 0xa8]
lea esi, [edx + 0xf]
mov byte [ebx + edx + 5], al
mov dword [ebx + edx + 6], 0x30302e30
mov dword [ebx + edx + 0xa], 0x20202020
mov word [ebx + edx + 0xe], 0x500
add edx, 0x10
lea eax, [edx + 1]
mov byte [ebx + 2], al
xor eax, eax
cmp edx, 2
jb 0x4397fe
add ch, byte [ebx + eax]
add cl, byte [ebx + eax + 1]
add eax, 2
cmp eax, esi
jb 0x4397f0
cmp eax, edx
jae 0x439807
mov al, byte [eax + ebx]
jmp 0x43980a
mov al, byte [ebp - 0x11]
add cl, ch
add cl, al
lea eax, [edx + 1]
mov byte [ebx + edx], cl
mov ecx, dword [ebp - 0x54]
pop edi
pop esi
pop ebx
mov word [ecx], ax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403d8c
mov esp, ebp
pop ebp
ret 8