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

Disassembly:
push ebp
lea ebp, [esp - 0xc1c]
sub esp, 0xc1c
push 0xffffffffffffffff
push 0x548700
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x588e74]
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 0x50600e
call fcn.005067c0
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 0x50599d
cmp dword [ebx], 7
jb 0x50598e
mov eax, dword [0x588df8]
mov cl, 1
inc eax
mov dword [0x588df8], eax
jmp 0x50599d
mov eax, dword [ebx]
cmp eax, dword [0x588df4]
jbe 0x50599d
mov dword [0x588df4], eax
test esi, esi
je 0x505fc9
test cl, cl
jne 0x505fc9
mov byte [ebp - 0x13], dl
xor edi, edi
mov al, byte [esi + edi]
xor al, 0x33
cmp al, 0x1d
je 0x5059c6
cmp al, 0x33
je 0x505fc9
inc edi
jmp 0x5059b2
push 0x400
lea eax, [ebp + 0x818]
push 0
push eax
call fcn.0052ee50
push edi
lea eax, [ebp + 0x818]
push esi
push eax
call fcn.0052e8d0
add esp, 0x18
lea eax, [ebp + 0x818]
push eax
call fcn.00506b40
mov esi, eax
mov dword [ebp + 0x10], esi
test esi, esi
jne 0x505ac2
push eax
lea eax, [ebp + 0x818]
push eax
call fcn.00506060
mov dword [ebp + 0x10], eax
test eax, eax
je 0x505a27
mov eax, dword [0x588dcc]
inc eax
mov dword [0x588dcc], eax
jmp 0x505abf
mov eax, dword [0x588dd0]
inc eax
mov dword [0x588dd0], eax
call fcn.00508f80
mov ecx, eax
test ecx, ecx
je 0x505abf
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 0x505a67
inc esi
jmp 0x505a51
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 0x505a9a
mov dword [ebp - 0x3c], eax
mov eax, dword [0x588db0]
inc eax
mov dword [0x588db0], eax
jmp 0x505aa5
mov eax, dword [0x588db4]
inc eax
mov dword [0x588db4], eax
lea eax, [esi + esi]
push eax
lea eax, [ebp + 0x18]
push 0
push eax
call fcn.0052ee50
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.0052ee50
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 0x505b05
inc edx
mov byte [ebp - 0x12], 1
mov dword [ebp - 0x20], edx
lea eax, [ecx + edx]
push eax
call fcn.004d8a32
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 0x505b23
cmp dword [ebx], 7
jb 0x505b23
mov eax, dword [0x588df8]
mov cl, 1
mov esi, dword [ebp + 0x10]
inc eax
mov dword [0x588df8], eax
jmp 0x505b26
mov cl, byte [ebp - 0x13]
test esi, esi
je 0x505d28
test cl, cl
jne 0x505d28
mov eax, dword [esi + 0x3c]
test eax, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + esi]
cmove ecx, esi
test ecx, ecx
je 0x505d28
mov edx, dword [ecx + 0x78]
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], eax
test edx, edx
je 0x505b76
mov eax, dword [ecx + 0x7c]
test eax, eax
je 0x505b74
add edx, esi
add eax, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x30], eax
mov eax, edx
jmp 0x505b76
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x505d28
cmp dword [ecx + 0x7c], 0x28
jb 0x505d28
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 0x505d28
cmp byte [ebp - 0x12], 0
je 0x505dbb
mov eax, dword [0x588db8]
inc eax
mov dword [0x588db8], eax
test ecx, ecx
je 0x505d28
cmp edi, edx
jae 0x505bf3
mov bh, 1
jmp 0x505d2b
mov eax, edi
sub eax, edx
cmp eax, ecx
jae 0x505bec
mov ecx, dword [esi + eax*4]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x505d28
mov esi, dword [ebp + 0x10]
add esi, ecx
cmp esi, dword [ebp - 0x24]
jb 0x505db3
cmp esi, dword [ebp - 0x30]
ja 0x505db3
push dword [ebp - 0x28]
push esi
call fcn.00506520
test al, al
je 0x505d93
push dword [ebp + 0x10]
push esi
call fcn.00506060
test eax, eax
je 0x505c52
mov dword [ebp + 0x10], eax
mov eax, dword [0x588dcc]
inc eax
mov dword [0x588dcc], eax
jmp 0x505c5d
mov eax, dword [0x588dd0]
inc eax
mov dword [0x588dd0], eax
mov eax, dword [0x588da4]
inc eax
mov dword [ebp + 0x14], 0
mov dword [0x588da4], eax
call fcn.00508940
mov ecx, eax
test ecx, ecx
je 0x505cc8
mov eax, dword [0x588dd4]
inc eax
mov dword [0x588dd4], eax
lea eax, [ebp + 0x14]
push eax
push edi
push 0
push dword [ebp + 0x10]
call ecx
cmp eax, 0xc0000138
jne 0x505ca1
mov dword [ebp + 0x14], 0
jmp 0x505ca7
cmp dword [ebp + 0x14], 0
jne 0x505d07
mov eax, dword [0x588df0]
inc eax
mov dword [0x588df0], eax
mov eax, dword [0x588dd8]
inc eax
mov dword [0x588dd8], eax
mov eax, dword [0x588ddc]
inc eax
mov dword [0x588ddc], eax
mov bh, byte [ebp - 0x11]
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x505ce4
call fcn.00507b20
test eax, eax
je 0x505cde
push esi
call eax
cmp dword [ebp + 0x14], 0
jne 0x505d31
mov eax, dword [0x588dac]
mov bl, byte [ebp - 0x12]
inc eax
mov dword [0x588dac], eax
test bl, bl
je 0x505fd0
mov eax, dword [0x588dc0]
inc eax
mov dword [0x588dc0], eax
jmp 0x505d3f
mov eax, dword [0x588df0]
inc eax
mov dword [0x588df0], eax
mov eax, dword [0x588de4]
inc eax
mov dword [0x588de4], eax
mov eax, dword [0x588de8]
inc eax
mov dword [0x588de8], eax
mov bh, byte [ebp - 0x11]
cmp dword [ebp + 0x14], 0
je 0x505ccb
mov eax, dword [0x588da8]
mov bl, byte [ebp - 0x12]
inc eax
mov dword [0x588da8], eax
mov ecx, dword [0x588e10]
rdtsc
mov esi, eax
mov eax, dword [0x588e14]
sub esi, dword [ebp - 0x54]
sbb edx, dword [ebp - 0x50]
or ecx, eax
je 0x505d6d
mov ecx, dword [0x588e10]
mov eax, dword [0x588e14]
cmp eax, edx
ja 0x505d79
jb 0x505d6d
cmp ecx, esi
jae 0x505d79
mov dword [0x588e10], esi
mov dword [0x588e14], edx
cmp dword [ebp + 0x14], 0
je 0x505fe0
xor eax, eax
push eax
call fcn.0050af50
mov eax, dword [ebp + 0x14]
jmp 0x506030
mov eax, dword [0x588da0]
inc eax
mov dword [0x588da0], eax
test ebx, ebx
je 0x505da4
inc dword [ebx]
push ebx
push esi
call fcn.005058f0
mov dword [ebp + 0x14], eax
jmp 0x505d28
mov dword [ebp + 0x14], esi
jmp 0x505d28
mov eax, dword [0x588dbc]
inc eax
mov dword [0x588dbc], eax
test ecx, ecx
je 0x505d28
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x505d28
cmp dword [ebp - 0x38], 0
je 0x505d28
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x505d28
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp eax, esi
jae 0x505d28
mov ecx, dword [edx + eax*4]
test ecx, ecx
je 0x505f59
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 0x505f49
test dl, dl
jne 0x505fc3
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 0x505f49
mov edi, dword [ebp + 0x10]
lea esi, [eax + edi]
cmp esi, dword [ebp - 0x24]
jb 0x505fae
cmp esi, dword [ebp - 0x30]
ja 0x505fae
push dword [ebp - 0x28]
push esi
call fcn.00506520
test al, al
je 0x505f80
push edi
push esi
call fcn.00506060
mov edi, dword [ebp - 0x40]
mov ecx, eax
add edi, dword [ebp - 0x44]
test ecx, ecx
je 0x505ea4
mov eax, dword [0x588dcc]
push edi
inc eax
mov dword [ebp + 0x10], ecx
push ecx
mov dword [0x588dcc], eax
call fcn.005053e0
mov ecx, eax
jmp 0x505eb1
mov eax, dword [0x588dd0]
inc eax
xor ecx, ecx
mov dword [0x588dd0], eax
mov eax, dword [0x588da4]
inc eax
mov dword [ebp + 0x14], ecx
mov dword [0x588da4], eax
test ecx, ecx
jne 0x505fb7
call fcn.00508940
mov esi, eax
test esi, esi
je 0x505f77
push edi
call fcn.00506a70
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 0x505f10
cmp eax, 0xc0000142
jne 0x505f17
mov dword [ebp + 0x14], 0
mov eax, dword [0x588dd4]
inc eax
cmp dword [ebp + 0x14], 0
mov dword [0x588dd4], eax
jne 0x505f5f
mov eax, dword [0x588df0]
inc eax
mov dword [0x588df0], eax
mov eax, dword [0x588dd8]
inc eax
mov dword [0x588dd8], eax
mov eax, dword [0x588de0]
inc eax
mov dword [0x588de0], eax
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
inc eax
jmp 0x505df0
mov eax, dword [0x588de4]
inc eax
mov dword [0x588de4], eax
mov eax, dword [0x588dec]
inc eax
mov dword [0x588dec], eax
jmp 0x505fb1
mov dword [ebp + 0x14], 0
jmp 0x505f49
mov eax, dword [0x588da0]
inc eax
mov dword [0x588da0], eax
test ebx, ebx
je 0x505f91
inc dword [ebx]
push ebx
push esi
call fcn.005058f0
mov dword [ebp + 0x14], eax
jmp 0x505fb1
mov dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
je 0x505f49
mov dword [ebp - 4], 0xffffffff
jmp 0x505d28
inc ecx
jmp 0x505e17
mov bh, dl
jmp 0x505d2b
mov eax, dword [0x588dc4]
inc eax
mov dword [0x588dc4], eax
jmp 0x505d3f
test bl, bl
je 0x505ffe
test bh, bh
mov ecx, 0x4750412d
mov eax, 0xc0000138
cmovne eax, ecx
push eax
call fcn.0050af50
mov eax, dword [ebp + 0x14]
jmp 0x506030
mov eax, 0xc0000139
push eax
call fcn.0050af50
mov eax, dword [ebp + 0x14]
jmp 0x506030
cmp dword [0x588e34], 0x33c0
jne 0x50602e
call fcn.0050b2ed
add eax, 0x33c0
mov dword [0x588e34], eax
mov eax, dword [ebp + 0x14]
jmp 0x506030
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.005168d0
lea esp, [ebp + 0xc1c]
pop ebp
ret 8