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

Disassembly:
push ebp
lea ebp, [esp - 0xc1c]
sub esp, 0xc1c
push 0xffffffffffffffff
push 0x57c8b0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x59b000]
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 - 0x20], esi
mov dword [ebp - 0x38], ebx
mov dword [ebp + 0x14], 0
cmp esi, 0x1fefa
je 0x54221d
call fcn.00542a40
rdtsc
mov dword [ebp - 0x48], edx
xor cl, cl
xor dl, dl
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], dl
test ebx, ebx
je 0x541c22
cmp dword [ebx], 7
jb 0x541c13
inc dword [0x59a4a8]
mov cl, 1
jmp 0x541c22
mov eax, dword [ebx]
cmp eax, dword [0x59a4a4]
jbe 0x541c22
mov dword [0x59a4a4], eax
test esi, esi
je 0x542184
test cl, cl
jne 0x542184
mov byte [ebp - 0x13], dl
xor edi, edi
mov al, byte [esi + edi]
xor al, 0x33
cmp al, 0x1d
je 0x541c47
cmp al, 0x33
je 0x541c47
inc edi
jmp 0x541c37
mov al, byte [esi + edi]
xor al, 0x33
cmp al, 0x1d
jne 0x542184
push 0x400
lea eax, [ebp + 0x818]
push 0
push eax
call fcn.0054b440
push edi
lea eax, [ebp + 0x818]
mov dword [ebp + 0x10], 0
push esi
push eax
call fcn.0054adf0
add esp, 0x18
lea eax, [ebp + 0x818]
push eax
call fcn.00540330
mov esi, eax
mov dword [ebp + 0x10], esi
test esi, esi
jne 0x541d4a
push eax
lea eax, [ebp + 0x818]
push eax
call fcn.00542270
mov dword [ebp + 0x10], eax
test eax, eax
je 0x541cb7
inc dword [0x59a47c]
jmp 0x541d47
inc dword [0x59a480]
call fcn.00543820
mov ecx, eax
test ecx, ecx
je 0x541d47
xorps xmm0, xmm0
lea eax, [ebp + 0x18]
movq qword [ebp], xmm0
xor esi, esi
mov dword [ebp + 4], eax
lea esp, [esp]
movsx ax, byte [ebp + esi + 0x818]
mov word [ebp + esi*2 + 0x18], ax
test ax, ax
je 0x541cf6
inc esi
jmp 0x541ce0
lea eax, [esi + esi]
mov word [ebp], ax
mov eax, dword [ebp]
add eax, 2
mov word [ebp + 2], ax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp]
push eax
push 0
push 0
call ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x541d27
inc dword [0x59a460]
mov dword [ebp - 0x40], eax
jmp 0x541d2d
inc dword [0x59a464]
lea eax, [esi + esi]
push eax
lea eax, [ebp + 0x18]
push 0
push eax
call fcn.0054b440
xorps xmm0, xmm0
add esp, 0xc
movq qword [ebp], xmm0
mov esi, dword [ebp + 0x10]
push edi
lea eax, [ebp + 0x818]
push 0
push eax
call fcn.0054b440
mov ecx, dword [ebp - 0x20]
inc edi
xor edx, edx
mov dword [ebp - 0x44], edi
add esp, 0xc
mov dword [ebp - 0x18], edx
mov al, byte [ecx + edi]
xor al, 0x33
cmp al, 0x10
jne 0x541d8b
inc edi
mov byte [ebp - 0x12], 1
mov dword [ebp - 0x44], edi
lea eax, [ecx + edi]
push eax
call fcn.0054f446
mov esi, dword [ebp + 0x10]
add esp, 4
mov dword [ebp - 0x18], eax
test ebx, ebx
je 0x541da1
cmp dword [ebx], 7
jb 0x541da1
inc dword [0x59a4a8]
mov al, 1
mov esi, dword [ebp + 0x10]
jmp 0x541da4
mov al, byte [ebp - 0x13]
test esi, esi
je 0x541f3e
test al, al
jne 0x541f3e
mov eax, dword [esi + 0x3c]
mov ecx, esi
test eax, eax
je 0x541dc0
lea ecx, [eax + esi]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x541f3e
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
cmp dword [ecx + 0x78], eax
je 0x541df4
cmp dword [ecx + 0x7c], eax
je 0x541df4
mov eax, dword [ecx + 0x78]
mov ebx, dword [ecx + 0x7c]
add eax, esi
add ebx, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x541f3e
cmp dword [ecx + 0x7c], 0x28
jb 0x541f3e
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x10]
add edx, esi
mov dword [ebp - 0x1c], edx
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x30], edx
mov edx, dword [eax + 0x20]
mov dword [ebp - 0x24], ecx
add edx, esi
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x24]
add eax, esi
mov dword [ebp - 0x28], edx
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x541f3e
cmp byte [ebp - 0x12], 0
je 0x541fad
inc dword [0x59a468]
test ecx, ecx
je 0x541f3e
mov esi, dword [ebp - 0x24]
cmp edx, esi
jae 0x541e6f
mov bh, 1
jmp 0x541f41
mov eax, edx
sub eax, esi
cmp eax, ecx
jae 0x541e68
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edx + eax*4]
test eax, eax
je 0x541f3e
mov edi, dword [ebp + 0x10]
lea esi, [eax + edi]
cmp esi, dword [ebp - 0x34]
jb 0x541fa8
cmp esi, dword [ebp - 0x2c]
ja 0x541fa8
push dword [ebp - 0x20]
push esi
call fcn.00542750
test al, al
je 0x541f90
push edi
push esi
call fcn.00542270
test eax, eax
je 0x541ecb
mov dword [ebp + 0x10], eax
inc dword [0x59a47c]
jmp 0x541ed1
inc dword [0x59a480]
mov dword [ebp + 0x14], 0
inc dword [0x59a454]
call fcn.005436e0
test eax, eax
je 0x541f84
inc dword [0x59a484]
lea ecx, [ebp + 0x14]
push ecx
push dword [ebp - 0x18]
push 0
push dword [ebp + 0x10]
call eax
cmp eax, 0xc0000138
jne 0x541f0f
mov dword [ebp + 0x14], 0
jmp 0x541f15
cmp dword [ebp + 0x14], 0
jne 0x541f2c
inc dword [0x59a4a0]
inc dword [0x59a488]
inc dword [0x59a48c]
mov bh, byte [ebp - 0x11]
jmp 0x541f4b
inc dword [0x59a4a0]
inc dword [0x59a494]
inc dword [0x59a498]
mov bh, byte [ebp - 0x11]
cmp dword [ebp + 0x14], 0
jne 0x542193
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x541f68
call fcn.00543160
test eax, eax
je 0x541f5e
push esi
call eax
cmp dword [ebp + 0x14], 0
jne 0x542193
mov bl, byte [ebp - 0x12]
inc dword [0x59a45c]
test bl, bl
je 0x54218b
inc dword [0x59a470]
jmp 0x54219c
mov bh, byte [ebp - 0x11]
mov dword [ebp + 0x14], 0
jmp 0x541f4b
inc dword [0x59a450]
test ebx, ebx
je 0x541f9c
inc dword [ebx]
push ebx
push esi
call fcn.00541b80
mov dword [ebp + 0x14], eax
jmp 0x541f3e
mov dword [ebp + 0x14], esi
jmp 0x541f3e
inc dword [0x59a46c]
test ecx, ecx
je 0x541f3e
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x541f3e
test eax, eax
je 0x541f3e
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x541f3e
xor ebx, ebx
mov dword [ebp - 0x18], ebx
cmp ebx, edx
jae 0x541f3e
mov ecx, dword [ecx + ebx*4]
test ecx, ecx
je 0x542129
mov eax, dword [ebp - 0x20]
add ecx, dword [ebp + 0x10]
add eax, edi
mov dword [ebp - 0x24], eax
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x542014
test dl, dl
je 0x542010
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x542014
add ecx, 2
add eax, 2
test dl, dl
jne 0x541ff4
xor eax, eax
jmp 0x542019
sbb eax, eax
or eax, 1
test eax, eax
jne 0x54211f
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], 8
movzx eax, word [eax + ebx*2]
mov eax, dword [esi + eax*4]
test eax, eax
je 0x54211f
mov ebx, dword [ebp + 0x10]
lea esi, [eax + ebx]
cmp esi, dword [ebp - 0x34]
jb 0x54216f
cmp esi, dword [ebp - 0x2c]
ja 0x54216f
push dword [ebp - 0x20]
push esi
call fcn.00542750
test al, al
je 0x542149
push ebx
push esi
call fcn.00542270
mov ebx, dword [ebp - 0x24]
test eax, eax
je 0x542086
push ebx
mov dword [ebp + 0x10], eax
inc dword [0x59a47c]
push eax
call fcn.005416e0
mov dword [ebp + 0x14], eax
jmp 0x542093
inc dword [0x59a480]
mov dword [ebp + 0x14], 0
inc dword [0x59a454]
cmp dword [ebp + 0x14], 0
jne 0x542178
call fcn.005436e0
mov esi, eax
test esi, esi
je 0x542140
xorps xmm0, xmm0
push ebx
movq qword [ebp + 8], xmm0
call fcn.00542cc0
mov word [ebp + 8], ax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 0xc], ebx
mov word [ebp + 0xa], ax
lea eax, [ebp + 0x14]
push eax
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
call esi
xorps xmm0, xmm0
movq qword [ebp + 8], xmm0
cmp eax, 0xc0000138
je 0x5420f4
cmp eax, 0xc0000142
jne 0x5420fb
mov dword [ebp + 0x14], 0
inc dword [0x59a484]
cmp dword [ebp + 0x14], 0
jne 0x542132
inc dword [0x59a4a0]
inc dword [0x59a488]
inc dword [0x59a490]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
inc ebx
jmp 0x541fd3
inc dword [0x59a494]
inc dword [0x59a49c]
jmp 0x542172
mov dword [ebp + 0x14], 0
jmp 0x542119
inc dword [0x59a450]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x542158
inc dword [eax]
push eax
push esi
call fcn.00541b80
mov dword [ebp + 0x14], eax
jmp 0x542172
mov dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
je 0x542119
mov dword [ebp - 4], 0xffffffff
jmp 0x541f3e
mov bh, dl
jmp 0x541f41
inc dword [0x59a474]
jmp 0x54219c
inc dword [0x59a458]
mov bl, byte [ebp - 0x12]
mov ecx, dword [0x59a4c0]
rdtsc
mov esi, eax
mov eax, dword [0x59a4c4]
sub esi, dword [ebp - 0x4c]
sbb edx, dword [ebp - 0x48]
or ecx, eax
je 0x5421ca
mov ecx, dword [0x59a4c0]
mov eax, dword [0x59a4c4]
cmp eax, edx
ja 0x5421d6
jb 0x5421ca
cmp ecx, esi
jae 0x5421d6
mov dword [0x59a4c0], esi
mov dword [0x59a4c4], edx
cmp dword [ebp + 0x14], 0
je 0x5421e8
push 0
call fcn.00544b10
mov eax, dword [ebp + 0x14]
jmp 0x54223f
test bl, bl
je 0x54220e
test bh, bh
je 0x5421ff
push 0x4750412d
call fcn.00544b10
mov eax, dword [ebp + 0x14]
jmp 0x54223f
push 0xc0000138
call fcn.00544b10
mov eax, dword [ebp + 0x14]
jmp 0x54223f
push 0xc0000139
call fcn.00544b10
mov eax, dword [ebp + 0x14]
jmp 0x54223f
cmp dword [0x59a4e8], 0x33c0
jne 0x54223d
call fcn.005456fe
add eax, 0x33c0
mov dword [0x59a4e8], eax
mov eax, dword [ebp + 0x14]
jmp 0x54223f
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.0054a992
lea esp, [ebp + 0xc1c]
pop ebp
ret 8