Function at 0x5985c0
Capabilities:
Execute anti-debugging instructions
Resolve function by parsing pe exports

Disassembly:
push ebp
lea ebp, [esp - 0xc1c]
sub esp, 0xc1c
push 0xffffffffffffffff
push 0x5e7ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x616930]
xor eax, ebp
mov dword [ebp + 0xc18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0xc24]
mov ebx, dword [ebp + 0xc28]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp + 0x14], 0
cmp esi, 0x1fefa
je 0x598cde
call fcn.00599490
rdtsc
mov dword [ebp - 0x50], edx
xor cl, cl
xor dl, dl
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], dl
test ebx, ebx
je 0x59866d
cmp dword [ebx], 7
jb 0x59865e
mov eax, dword [0x6168b0]
mov cl, 1
inc eax
mov dword [0x6168b0], eax
jmp 0x59866d
mov eax, dword [ebx]
cmp eax, dword [0x6168ac]
jbe 0x59866d
mov dword [0x6168ac], eax
test esi, esi
je 0x598c99
test cl, cl
jne 0x598c99
mov byte [ebp - 0x13], dl
xor edi, edi
mov al, byte [esi + edi]
xor al, 0x33
cmp al, 0x1d
je 0x598696
cmp al, 0x33
je 0x598c99
inc edi
jmp 0x598682
push 0x400
lea eax, [ebp + 0x818]
push 0
push eax
call fcn.005be800
push edi
lea eax, [ebp + 0x818]
push esi
push eax
call fcn.005be280
add esp, 0x18
lea eax, [ebp + 0x818]
push eax
call fcn.00599850
mov esi, eax
mov dword [ebp + 0x10], esi
test esi, esi
jne 0x598792
push eax
lea eax, [ebp + 0x818]
push eax
call fcn.00598d30
mov dword [ebp + 0x10], eax
test eax, eax
je 0x5986f7
mov eax, dword [0x616884]
inc eax
mov dword [0x616884], eax
jmp 0x59878f
mov eax, dword [0x616888]
inc eax
mov dword [0x616888], eax
call fcn.0059bc80
mov ecx, eax
test ecx, ecx
je 0x59878f
xorps xmm0, xmm0
lea eax, [ebp + 0x18]
movlpd qword [ebp + 8], xmm0
xor esi, esi
mov dword [ebp + 0xc], eax
movsx ax, byte [ebp + esi + 0x818]
mov word [ebp + esi*2 + 0x18], ax
test ax, ax
je 0x598737
inc esi
jmp 0x598721
lea eax, [esi + esi]
mov word [ebp + 8], ax
add eax, 2
mov word [ebp + 0xa], ax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 8]
push eax
push 0
push 0
call ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x59876a
mov dword [ebp - 0x3c], eax
mov eax, dword [0x616868]
inc eax
mov dword [0x616868], eax
jmp 0x598775
mov eax, dword [0x61686c]
inc eax
mov dword [0x61686c], eax
lea eax, [esi + esi]
push eax
lea eax, [ebp + 0x18]
push 0
push eax
call fcn.005be800
xorps xmm0, xmm0
add esp, 0xc
movlpd qword [ebp + 8], xmm0
mov esi, dword [ebp + 0x10]
push edi
lea eax, [ebp + 0x818]
push 0
push eax
call fcn.005be800
mov ecx, dword [ebp - 0x28]
inc edi
mov dword [ebp - 0x20], edi
add esp, 0xc
mov edx, dword [ebp - 0x20]
xor edi, edi
mov al, byte [ecx + edx]
xor al, 0x33
cmp al, 0x10
jne 0x5987d5
inc edx
mov byte [ebp - 0x12], 1
mov dword [ebp - 0x20], edx
lea eax, [ecx + edx]
push eax
call fcn.004dfc51
mov esi, dword [ebp + 0x10]
add esp, 4
mov edx, dword [ebp - 0x20]
mov edi, eax
mov dword [ebp - 0x40], edx
test ebx, ebx
je 0x5987f3
cmp dword [ebx], 7
jb 0x5987f3
mov eax, dword [0x6168b0]
mov cl, 1
mov esi, dword [ebp + 0x10]
inc eax
mov dword [0x6168b0], eax
jmp 0x5987f6
mov cl, byte [ebp - 0x13]
test esi, esi
je 0x5989f8
test cl, cl
jne 0x5989f8
mov eax, dword [esi + 0x3c]
test eax, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + esi]
cmove ecx, esi
test ecx, ecx
je 0x5989f8
mov edx, dword [ecx + 0x78]
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], eax
test edx, edx
je 0x598846
mov eax, dword [ecx + 0x7c]
test eax, eax
je 0x598844
add edx, esi
add eax, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x30], eax
mov eax, edx
jmp 0x598846
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x5989f8
cmp dword [ecx + 0x7c], 0x28
jb 0x5989f8
mov ebx, dword [eax + 0x1c]
mov edx, dword [eax + 0x10]
add ebx, esi
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x34], ebx
mov ebx, dword [eax + 0x18]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
add ebx, esi
add eax, esi
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x5989f8
cmp byte [ebp - 0x12], 0
je 0x598a8b
mov eax, dword [0x616870]
inc eax
mov dword [0x616870], eax
test ecx, ecx
je 0x5989f8
cmp edi, edx
jae 0x5988c3
mov bh, 1
jmp 0x5989fb
mov eax, edi
sub eax, edx
cmp eax, ecx
jae 0x5988bc
mov ecx, dword [esi + eax*4]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x5989f8
mov esi, dword [ebp + 0x10]
add esi, ecx
cmp esi, dword [ebp - 0x24]
jb 0x598a83
cmp esi, dword [ebp - 0x30]
ja 0x598a83
push dword [ebp - 0x28]
push esi
call fcn.005991f0
test al, al
je 0x598a63
push dword [ebp + 0x10]
push esi
call fcn.00598d30
test eax, eax
je 0x598922
mov dword [ebp + 0x10], eax
mov eax, dword [0x616884]
inc eax
mov dword [0x616884], eax
jmp 0x59892d
mov eax, dword [0x616888]
inc eax
mov dword [0x616888], eax
mov eax, dword [0x61685c]
inc eax
mov dword [ebp + 0x14], 0
mov dword [0x61685c], eax
call fcn.0059b640
mov ecx, eax
test ecx, ecx
je 0x598998
mov eax, dword [0x61688c]
inc eax
mov dword [0x61688c], eax
lea eax, [ebp + 0x14]
push eax
push edi
push 0
push dword [ebp + 0x10]
call ecx
cmp eax, 0xc0000138
jne 0x598971
mov dword [ebp + 0x14], 0
jmp 0x598977
cmp dword [ebp + 0x14], 0
jne 0x5989d7
mov eax, dword [0x6168a8]
inc eax
mov dword [0x6168a8], eax
mov eax, dword [0x616890]
inc eax
mov dword [0x616890], eax
mov eax, dword [0x616894]
inc eax
mov dword [0x616894], eax
mov bh, byte [ebp - 0x11]
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x5989b4
call fcn.0059a830
test eax, eax
je 0x5989ae
push esi
call eax
cmp dword [ebp + 0x14], 0
jne 0x598a01
mov eax, dword [0x616864]
mov bl, byte [ebp - 0x12]
inc eax
mov dword [0x616864], eax
test bl, bl
je 0x598ca0
mov eax, dword [0x616878]
inc eax
mov dword [0x616878], eax
jmp 0x598a0f
mov eax, dword [0x6168a8]
inc eax
mov dword [0x6168a8], eax
mov eax, dword [0x61689c]
inc eax
mov dword [0x61689c], eax
mov eax, dword [0x6168a0]
inc eax
mov dword [0x6168a0], eax
mov bh, byte [ebp - 0x11]
cmp dword [ebp + 0x14], 0
je 0x59899b
mov eax, dword [0x616860]
mov bl, byte [ebp - 0x12]
inc eax
mov dword [0x616860], eax
mov ecx, dword [0x6168c8]
rdtsc
mov esi, eax
mov eax, dword [0x6168cc]
sub esi, dword [ebp - 0x54]
sbb edx, dword [ebp - 0x50]
or ecx, eax
je 0x598a3d
mov ecx, dword [0x6168c8]
mov eax, dword [0x6168cc]
cmp eax, edx
ja 0x598a49
jb 0x598a3d
cmp ecx, esi
jae 0x598a49
mov dword [0x6168c8], esi
mov dword [0x6168cc], edx
cmp dword [ebp + 0x14], 0
je 0x598cb0
xor eax, eax
push eax
call fcn.0059dc50
mov eax, dword [ebp + 0x14]
jmp 0x598d00
mov eax, dword [0x616858]
inc eax
mov dword [0x616858], eax
test ebx, ebx
je 0x598a74
inc dword [ebx]
push ebx
push esi
call fcn.005985c0
mov dword [ebp + 0x14], eax
jmp 0x5989f8
mov dword [ebp + 0x14], esi
jmp 0x5989f8
mov eax, dword [0x616874]
inc eax
mov dword [0x616874], eax
test ecx, ecx
je 0x5989f8
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x5989f8
cmp dword [ebp - 0x38], 0
je 0x5989f8
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x5989f8
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp eax, esi
jae 0x5989f8
mov ecx, dword [edx + eax*4]
test ecx, ecx
je 0x598c29
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp - 0x20]
add esi, ecx
mov dword [ebp - 4], 8
xor ecx, ecx
mov eax, dword [ebp - 0x28]
mov dl, byte [ecx + esi]
add eax, ecx
cmp dl, byte [eax + edi]
jne 0x598c19
test dl, dl
jne 0x598c93
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 4], 8
movzx eax, word [ecx + eax*2]
mov eax, dword [esi + eax*4]
test eax, eax
je 0x598c19
mov edi, dword [ebp + 0x10]
lea esi, [eax + edi]
cmp esi, dword [ebp - 0x24]
jb 0x598c7e
cmp esi, dword [ebp - 0x30]
ja 0x598c7e
push dword [ebp - 0x28]
push esi
call fcn.005991f0
test al, al
je 0x598c50
push edi
push esi
call fcn.00598d30
mov edi, dword [ebp - 0x40]
mov ecx, eax
add edi, dword [ebp - 0x44]
test ecx, ecx
je 0x598b74
mov eax, dword [0x616884]
push edi
inc eax
mov dword [ebp + 0x10], ecx
push ecx
mov dword [0x616884], eax
call fcn.005980b0
mov ecx, eax
jmp 0x598b81
mov eax, dword [0x616888]
inc eax
xor ecx, ecx
mov dword [0x616888], eax
mov eax, dword [0x61685c]
inc eax
mov dword [ebp + 0x14], ecx
mov dword [0x61685c], eax
test ecx, ecx
jne 0x598c87
call fcn.0059b640
mov esi, eax
test esi, esi
je 0x598c47
push edi
call fcn.00599780
movzx eax, ax
mov word [ebp], ax
inc eax
mov word [ebp + 2], ax
lea eax, [ebp + 0x14]
push eax
push 0
lea eax, [ebp]
mov dword [ebp + 4], edi
push eax
push dword [ebp + 0x10]
call esi
xorps xmm0, xmm0
movlpd qword [ebp], xmm0
cmp eax, 0xc0000138
je 0x598be0
cmp eax, 0xc0000142
jne 0x598be7
mov dword [ebp + 0x14], 0
mov eax, dword [0x61688c]
inc eax
cmp dword [ebp + 0x14], 0
mov dword [0x61688c], eax
jne 0x598c2f
mov eax, dword [0x6168a8]
inc eax
mov dword [0x6168a8], eax
mov eax, dword [0x616890]
inc eax
mov dword [0x616890], eax
mov eax, dword [0x616898]
inc eax
mov dword [0x616898], eax
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
inc eax
jmp 0x598ac0
mov eax, dword [0x61689c]
inc eax
mov dword [0x61689c], eax
mov eax, dword [0x6168a4]
inc eax
mov dword [0x6168a4], eax
jmp 0x598c81
mov dword [ebp + 0x14], 0
jmp 0x598c19
mov eax, dword [0x616858]
inc eax
mov dword [0x616858], eax
test ebx, ebx
je 0x598c61
inc dword [ebx]
push ebx
push esi
call fcn.005985c0
mov dword [ebp + 0x14], eax
jmp 0x598c81
mov dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
je 0x598c19
mov dword [ebp - 4], 0xffffffff
jmp 0x5989f8
inc ecx
jmp 0x598ae7
mov bh, dl
jmp 0x5989fb
mov eax, dword [0x61687c]
inc eax
mov dword [0x61687c], eax
jmp 0x598a0f
test bl, bl
je 0x598cce
test bh, bh
mov ecx, 0x4750412d
mov eax, 0xc0000138
cmovne eax, ecx
push eax
call fcn.0059dc50
mov eax, dword [ebp + 0x14]
jmp 0x598d00
mov eax, 0xc0000139
push eax
call fcn.0059dc50
mov eax, dword [ebp + 0x14]
jmp 0x598d00
cmp dword [0x6168ec], 0x33c0
jne 0x598cfe
call fcn.0059dfed
add eax, 0x33c0
mov dword [0x6168ec], eax
mov eax, dword [ebp + 0x14]
jmp 0x598d00
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc18]
xor ecx, ebp
call fcn.005bca10
lea esp, [ebp + 0xc1c]
pop ebp
ret 8