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

Disassembly:
push ebp
lea ebp, [esp - 0xc1c]
sub esp, 0xc1c
push 0xffffffffffffffff
push 0x632270
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x659af8]
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 0x5eca2e
call fcn.005ed1e0
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 0x5ec3bd
cmp dword [ebx], 7
jb 0x5ec3ae
mov eax, dword [0x659978]
mov cl, 1
inc eax
mov dword [0x659978], eax
jmp 0x5ec3bd
mov eax, dword [ebx]
cmp eax, dword [0x659974]
jbe 0x5ec3bd
mov dword [0x659974], eax
test esi, esi
je 0x5ec9e9
test cl, cl
jne 0x5ec9e9
mov byte [ebp - 0x13], dl
xor edi, edi
mov al, byte [esi + edi]
xor al, 0x33
cmp al, 0x1d
je 0x5ec3e6
cmp al, 0x33
je 0x5ec9e9
inc edi
jmp 0x5ec3d2
push 0x400
lea eax, [ebp + 0x818]
push 0
push eax
call fcn.0060a6d0
push edi
lea eax, [ebp + 0x818]
push esi
push eax
call fcn.0060a150
add esp, 0x18
lea eax, [ebp + 0x818]
push eax
call fcn.005eb8c0
mov esi, eax
mov dword [ebp + 0x10], esi
test esi, esi
jne 0x5ec4e2
push eax
lea eax, [ebp + 0x818]
push eax
call fcn.005eca80
mov dword [ebp + 0x10], eax
test eax, eax
je 0x5ec447
mov eax, dword [0x65994c]
inc eax
mov dword [0x65994c], eax
jmp 0x5ec4df
mov eax, dword [0x659950]
inc eax
mov dword [0x659950], eax
call fcn.005f0410
mov ecx, eax
test ecx, ecx
je 0x5ec4df
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 0x5ec487
inc esi
jmp 0x5ec471
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 0x5ec4ba
mov dword [ebp - 0x3c], eax
mov eax, dword [0x659930]
inc eax
mov dword [0x659930], eax
jmp 0x5ec4c5
mov eax, dword [0x659934]
inc eax
mov dword [0x659934], eax
lea eax, [esi + esi]
push eax
lea eax, [ebp + 0x18]
push 0
push eax
call fcn.0060a6d0
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.0060a6d0
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 0x5ec525
inc edx
mov byte [ebp - 0x12], 1
mov dword [ebp - 0x20], edx
lea eax, [ecx + edx]
push eax
call fcn.005487c1
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 0x5ec543
cmp dword [ebx], 7
jb 0x5ec543
mov eax, dword [0x659978]
mov cl, 1
mov esi, dword [ebp + 0x10]
inc eax
mov dword [0x659978], eax
jmp 0x5ec546
mov cl, byte [ebp - 0x13]
test esi, esi
je 0x5ec748
test cl, cl
jne 0x5ec748
mov eax, dword [esi + 0x3c]
test eax, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + esi]
cmove ecx, esi
test ecx, ecx
je 0x5ec748
mov edx, dword [ecx + 0x78]
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], eax
test edx, edx
je 0x5ec596
mov eax, dword [ecx + 0x7c]
test eax, eax
je 0x5ec594
add edx, esi
add eax, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x30], eax
mov eax, edx
jmp 0x5ec596
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x5ec748
cmp dword [ecx + 0x7c], 0x28
jb 0x5ec748
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 0x5ec748
cmp byte [ebp - 0x12], 0
je 0x5ec7db
mov eax, dword [0x659938]
inc eax
mov dword [0x659938], eax
test ecx, ecx
je 0x5ec748
cmp edi, edx
jae 0x5ec613
mov bh, 1
jmp 0x5ec74b
mov eax, edi
sub eax, edx
cmp eax, ecx
jae 0x5ec60c
mov ecx, dword [esi + eax*4]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x5ec748
mov esi, dword [ebp + 0x10]
add esi, ecx
cmp esi, dword [ebp - 0x24]
jb 0x5ec7d3
cmp esi, dword [ebp - 0x30]
ja 0x5ec7d3
push dword [ebp - 0x28]
push esi
call fcn.005ecf40
test al, al
je 0x5ec7b3
push dword [ebp + 0x10]
push esi
call fcn.005eca80
test eax, eax
je 0x5ec672
mov dword [ebp + 0x10], eax
mov eax, dword [0x65994c]
inc eax
mov dword [0x65994c], eax
jmp 0x5ec67d
mov eax, dword [0x659950]
inc eax
mov dword [0x659950], eax
mov eax, dword [0x659924]
inc eax
mov dword [ebp + 0x14], 0
mov dword [0x659924], eax
call fcn.005efdd0
mov ecx, eax
test ecx, ecx
je 0x5ec6e8
mov eax, dword [0x659954]
inc eax
mov dword [0x659954], eax
lea eax, [ebp + 0x14]
push eax
push edi
push 0
push dword [ebp + 0x10]
call ecx
cmp eax, 0xc0000138
jne 0x5ec6c1
mov dword [ebp + 0x14], 0
jmp 0x5ec6c7
cmp dword [ebp + 0x14], 0
jne 0x5ec727
mov eax, dword [0x659970]
inc eax
mov dword [0x659970], eax
mov eax, dword [0x659958]
inc eax
mov dword [0x659958], eax
mov eax, dword [0x65995c]
inc eax
mov dword [0x65995c], eax
mov bh, byte [ebp - 0x11]
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x5ec704
call fcn.005eefc0
test eax, eax
je 0x5ec6fe
push esi
call eax
cmp dword [ebp + 0x14], 0
jne 0x5ec751
mov eax, dword [0x65992c]
mov bl, byte [ebp - 0x12]
inc eax
mov dword [0x65992c], eax
test bl, bl
je 0x5ec9f0
mov eax, dword [0x659940]
inc eax
mov dword [0x659940], eax
jmp 0x5ec75f
mov eax, dword [0x659970]
inc eax
mov dword [0x659970], eax
mov eax, dword [0x659964]
inc eax
mov dword [0x659964], eax
mov eax, dword [0x659968]
inc eax
mov dword [0x659968], eax
mov bh, byte [ebp - 0x11]
cmp dword [ebp + 0x14], 0
je 0x5ec6eb
mov eax, dword [0x659928]
mov bl, byte [ebp - 0x12]
inc eax
mov dword [0x659928], eax
mov ecx, dword [0x659990]
rdtsc
mov esi, eax
mov eax, dword [0x659994]
sub esi, dword [ebp - 0x54]
sbb edx, dword [ebp - 0x50]
or ecx, eax
je 0x5ec78d
mov ecx, dword [0x659990]
mov eax, dword [0x659994]
cmp eax, edx
ja 0x5ec799
jb 0x5ec78d
cmp ecx, esi
jae 0x5ec799
mov dword [0x659990], esi
mov dword [0x659994], edx
cmp dword [ebp + 0x14], 0
je 0x5eca00
xor eax, eax
push eax
call fcn.005f23e0
mov eax, dword [ebp + 0x14]
jmp 0x5eca50
mov eax, dword [0x659920]
inc eax
mov dword [0x659920], eax
test ebx, ebx
je 0x5ec7c4
inc dword [ebx]
push ebx
push esi
call fcn.005ec310
mov dword [ebp + 0x14], eax
jmp 0x5ec748
mov dword [ebp + 0x14], esi
jmp 0x5ec748
mov eax, dword [0x65993c]
inc eax
mov dword [0x65993c], eax
test ecx, ecx
je 0x5ec748
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x5ec748
cmp dword [ebp - 0x38], 0
je 0x5ec748
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x5ec748
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp eax, esi
jae 0x5ec748
mov ecx, dword [edx + eax*4]
test ecx, ecx
je 0x5ec979
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 0x5ec969
test dl, dl
jne 0x5ec9e3
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 0x5ec969
mov edi, dword [ebp + 0x10]
lea esi, [eax + edi]
cmp esi, dword [ebp - 0x24]
jb 0x5ec9ce
cmp esi, dword [ebp - 0x30]
ja 0x5ec9ce
push dword [ebp - 0x28]
push esi
call fcn.005ecf40
test al, al
je 0x5ec9a0
push edi
push esi
call fcn.005eca80
mov edi, dword [ebp - 0x40]
mov ecx, eax
add edi, dword [ebp - 0x44]
test ecx, ecx
je 0x5ec8c4
mov eax, dword [0x65994c]
push edi
inc eax
mov dword [ebp + 0x10], ecx
push ecx
mov dword [0x65994c], eax
call fcn.005ebe00
mov ecx, eax
jmp 0x5ec8d1
mov eax, dword [0x659950]
inc eax
xor ecx, ecx
mov dword [0x659950], eax
mov eax, dword [0x659924]
inc eax
mov dword [ebp + 0x14], ecx
mov dword [0x659924], eax
test ecx, ecx
jne 0x5ec9d7
call fcn.005efdd0
mov esi, eax
test esi, esi
je 0x5ec997
push edi
call fcn.005ed4a0
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 0x5ec930
cmp eax, 0xc0000142
jne 0x5ec937
mov dword [ebp + 0x14], 0
mov eax, dword [0x659954]
inc eax
cmp dword [ebp + 0x14], 0
mov dword [0x659954], eax
jne 0x5ec97f
mov eax, dword [0x659970]
inc eax
mov dword [0x659970], eax
mov eax, dword [0x659958]
inc eax
mov dword [0x659958], eax
mov eax, dword [0x659960]
inc eax
mov dword [0x659960], eax
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
inc eax
jmp 0x5ec810
mov eax, dword [0x659964]
inc eax
mov dword [0x659964], eax
mov eax, dword [0x65996c]
inc eax
mov dword [0x65996c], eax
jmp 0x5ec9d1
mov dword [ebp + 0x14], 0
jmp 0x5ec969
mov eax, dword [0x659920]
inc eax
mov dword [0x659920], eax
test ebx, ebx
je 0x5ec9b1
inc dword [ebx]
push ebx
push esi
call fcn.005ec310
mov dword [ebp + 0x14], eax
jmp 0x5ec9d1
mov dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
je 0x5ec969
mov dword [ebp - 4], 0xffffffff
jmp 0x5ec748
inc ecx
jmp 0x5ec837
mov bh, dl
jmp 0x5ec74b
mov eax, dword [0x659944]
inc eax
mov dword [0x659944], eax
jmp 0x5ec75f
test bl, bl
je 0x5eca1e
test bh, bh
mov ecx, 0x4750412d
mov eax, 0xc0000138
cmovne eax, ecx
push eax
call fcn.005f23e0
mov eax, dword [ebp + 0x14]
jmp 0x5eca50
mov eax, 0xc0000139
push eax
call fcn.005f23e0
mov eax, dword [ebp + 0x14]
jmp 0x5eca50
cmp dword [0x6599b4], 0x33c0
jne 0x5eca4e
call fcn.005f291d
add eax, 0x33c0
mov dword [0x6599b4], eax
mov eax, dword [ebp + 0x14]
jmp 0x5eca50
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.00608a00
lea esp, [ebp + 0xc1c]
pop ebp
ret 8