Function at 0x51b160
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x68
mov eax, dword [ebp + 0x14]
mov edi, ecx
mov ecx, dword [ebp + 0x1c]
mov esi, edx
mov ebx, dword [ebp + 0x20]
mov byte [esp + 0x18], 0x30
mov dword [esp + 0x14], 0x30303030
mov dword [esp + 0x10], 0x30303030
mov edx, dword [edi + 0x14]
mov dword [esp + 4], esi
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x44], ecx
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x20], ecx
test eax, eax
je 0x51b34d
test ecx, ecx
mov ecx, 9
cmovne ecx, edx
test ecx, ecx
mov dword [esp + 8], ecx
je 0x51b354
mov ecx, dword [ebp + 0x10]
mov dword [esp], edx
test ecx, ecx
je 0x51b814
xor edx, edx
div ecx
add al, 0x30
mov esi, edx
mov edx, 0xcccccccd
mov byte [esp + 0x10], al
mov eax, ecx
mul edx
test esi, esi
je 0x51b36d
shr edx, 3
cmp dword [esp + 8], 1
je 0x51b334
mov ecx, dword [ebp + 0x10]
cmp ecx, 0xa
jb 0x51b814
mov eax, esi
mov esi, edx
xor edx, edx
div esi
add al, 0x30
mov esi, edx
mov byte [esp + 0x11], al
mov eax, ecx
mov ecx, 0x51eb851f
mul ecx
test esi, esi
je 0x51b42b
shr edx, 5
cmp dword [esp + 8], 2
je 0x51b334
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x64
jb 0x51b814
mov eax, esi
mov esi, edx
xor edx, edx
div esi
add al, 0x30
mov esi, edx
mov byte [esp + 0x12], al
mov eax, ecx
mov ecx, 0x10624dd3
mul ecx
test esi, esi
je 0x51b438
shr edx, 6
cmp dword [esp + 8], 3
je 0x51b334
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x3e8
jb 0x51b814
mov eax, esi
mov esi, edx
xor edx, edx
div esi
add al, 0x30
mov esi, edx
mov byte [esp + 0x13], al
mov eax, ecx
mov ecx, 0xd1b71759
mul ecx
test esi, esi
je 0x51b445
shr edx, 0xd
cmp dword [esp + 8], 4
je 0x51b334
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x2710
jb 0x51b814
mov eax, esi
mov esi, edx
xor edx, edx
div esi
add al, 0x30
mov esi, edx
mov byte [esp + 0x14], al
mov eax, ecx
mov ecx, 0xa7c5ac5
shr eax, 5
mul ecx
test esi, esi
je 0x51b452
shr edx, 7
cmp dword [esp + 8], 5
je 0x51b334
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x186a0
jb 0x51b814
mov eax, esi
mov esi, edx
xor edx, edx
div esi
add al, 0x30
mov esi, edx
mov byte [esp + 0x15], al
mov eax, ecx
mov ecx, 0x431bde83
mul ecx
test esi, esi
je 0x51b45f
shr edx, 0x12
cmp dword [esp + 8], 6
jne 0x51b46c
mov ecx, esi
mov esi, dword [esp + 8]
lea eax, [edx + edx*4]
cmp ecx, eax
mov dword [esp + 0x24], esi
jae 0x51b37a
mov edx, dword [esp]
jmp 0x51b55f
xor esi, esi
jmp 0x51b55b
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 0x10]
xor esi, esi
lea ecx, [ecx + ecx*4]
cmp ecx, eax
ja 0x51b55f
jmp 0x51b3f3
mov edx, dword [esp]
mov esi, 1
jmp 0x51b55b
mov dword [esp + 0x1c], edi
lea edx, [esi - 1]
mov al, 1
xor esi, esi
mov edi, 0x30
nop word [eax + eax]
movzx ecx, byte [esp + edx + 0x10]
movzx eax, al
mov ch, cl
inc ch
cmp cl, 0x39
movzx ecx, ch
cmovb eax, esi
cmovae ecx, edi
mov byte [esp + edx + 0x10], cl
add edx, 0xffffffff
setb cl
test al, 1
je 0x51b3ba
test cl, cl
jne 0x51b390
mov edi, dword [esp + 0x1c]
mov edx, dword [esp]
test al, 1
jne 0x51b3f3
mov eax, dword [esp + 4]
mov dword [esp + 4], 0
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 1
mov eax, 1
jmp 0x51b422
mov ecx, dword [esp + 4]
mov esi, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp + 0x2c], 0
add ecx, 1
adc esi, 0
setae al
movzx eax, al
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], esi
mov esi, dword [esp + 8]
jmp 0x51b58b
mov edx, dword [esp]
mov esi, 2
jmp 0x51b55b
mov edx, dword [esp]
mov esi, 3
jmp 0x51b55b
mov edx, dword [esp]
mov esi, 4
jmp 0x51b55b
mov edx, dword [esp]
mov esi, 5
jmp 0x51b55b
mov edx, dword [esp]
mov esi, 6
jmp 0x51b55b
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0xc], edx
cmp ecx, 0xf4240
jb 0x51b814
mov eax, esi
xor edx, edx
div word [esp + 0xc]
add al, 0x30
mov esi, edx
mov edx, 0x6b5fca6b
mov byte [esp + 0x16], al
mov eax, ecx
mul edx
test si, si
je 0x51b4b0
shr edx, 0x16
cmp dword [esp + 8], 7
jne 0x51b4bd
movzx ecx, si
jmp 0x51b336
mov edx, dword [esp]
mov esi, 7
jmp 0x51b55b
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0xc], edx
cmp ecx, 0x989680
jb 0x51b814
mov eax, esi
xor edx, edx
div word [esp + 0xc]
add al, 0x30
mov esi, edx
mov edx, 0x55e63b89
mov byte [esp + 0x17], al
mov eax, ecx
mul edx
test si, si
je 0x51b507
shr edx, 0x19
cmp dword [esp + 8], 8
mov eax, esi
mov esi, edx
jne 0x51b511
movzx ecx, ax
mov edx, esi
jmp 0x51b336
mov edx, dword [esp]
mov esi, 8
jmp 0x51b55b
cmp dword [ebp + 0x10], 0x5f5e100
jb 0x51b814
xor edx, edx
div si
add al, 0x30
test dx, dx
mov byte [esp + 0x18], al
je 0x51b553
mov eax, dword [ebp + 0x10]
mov ecx, 0x44b83
mov esi, edx
shr eax, 9
mul ecx
cmp dword [esp + 8], 9
jne 0x51b7f8
movzx ecx, si
shr edx, 7
jmp 0x51b336
mov edx, dword [esp]
mov esi, 9
mov dword [esp + 0x24], esi
mov eax, dword [esp + 4]
mov dword [esp + 4], 0
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 1
mov eax, 1
cmp edx, 9
mov ecx, 9
cmovb ecx, edx
cmp dword [esp + 0x20], 0
cmove ecx, esi
cmp dword [edi + 8], 1
lea esi, [esp + 0x44]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], esi
jne 0x51b605
mov esi, dword [edi + 0xc]
cmp ebx, 0x10
mov dword [esp + 0x1c], edi
jae 0x51b615
test ebx, ebx
je 0x51b631
mov dword [esp], edx
mov edx, dword [ebp + 0x1c]
xor edi, edi
xor ecx, ecx
cmp byte [edx], 0xc0
lea edx, [edx + 1]
setge cl
add edi, ecx
dec ebx
jne 0x51b5f0
mov edx, dword [esp]
jmp 0x51b633
lea ecx, [esp + 0x4c]
mov edx, edi
call fcn.0051b830
jmp 0x51b7af
push ebx
push dword [ebp + 0x1c]
mov edi, edx
call fcn.00518b30
mov edx, edi
add esp, 8
mov edi, eax
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
jmp 0x51b637
xor edi, edi
mov ebx, dword [esp + 4]
add edi, dword [ebp + 0x18]
xor eax, 1
mov ecx, 0x14
or eax, ebx
jne 0x51b710
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov eax, ecx
or eax, ebx
je 0x51b6de
mov eax, ebx
mov dword [esp], edx
shld eax, ecx, 0x16
mov dword [esp + 4], eax
mov eax, ebx
shr eax, 0xa
mov dword [esp + 0xc], eax
push 2
push 0x540be400
push ebx
push ecx
mov dword [esp + 0x18], ecx
call fcn.00532f50
add esp, 0x10
mov ecx, 0x9502f8
cmp ecx, dword [esp + 4]
mov ecx, 0
sbb ecx, dword [esp + 0xc]
mov dword [esp + 0xc], ebx
mov ecx, 0xa
mov ebx, 0
cmovae edx, dword [esp + 0xc]
cmovae eax, dword [esp + 8]
cmovae ecx, ebx
mov dword [esp + 4], ecx
cmp eax, 0x186a0
mov ecx, edx
sbb ecx, 0
jb 0x51b6e5
push 0
push 0x186a0
push edx
push eax
call fcn.00532f50
add esp, 0x10
mov ebx, dword [esp + 4]
or ebx, 5
jmp 0x51b6e9
mov ecx, 1
jmp 0x51b710
mov ebx, dword [esp + 4]
lea ecx, [eax + 0x5fff6]
lea edx, [eax + 0x7ff9c]
and ecx, edx
lea edx, [eax + 0xdfc18]
add eax, 0x7d8f0
and eax, edx
mov edx, dword [esp]
xor eax, ecx
shr eax, 0x11
lea ecx, [ebx + eax + 1]
add edi, ecx
cmp dword [esp + 0x20], 0
jne 0x51b71d
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x38], 0
lea eax, [edx + edi + 1]
cmove eax, edi
sub esi, eax
jbe 0x51b750
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov eax, dword [edx + 0x20]
cmp al, 3
cmovne ecx, eax
movzx eax, cl
test cl, cl
je 0x51b766
cmp eax, 1
jne 0x51b75f
mov dword [esp], 0
jmp 0x51b76b
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x4c]
call fcn.0051b830
jmp 0x51b7af
mov eax, esi
inc esi
shr eax, 1
shr esi, 1
mov dword [esp], esi
mov esi, eax
mov eax, dword [edx]
mov edi, dword [edx + 4]
mov ebx, dword [edx + 0x1c]
inc esi
mov dword [esp + 0x20], eax
nop dword [eax + eax]
dec esi
je 0x51b794
push ebx
push dword [esp + 0x24]
call dword [edi + 0x10]
add esp, 8
test al, al
je 0x51b780
jmp 0x51b7ad
cmp ebx, 0x110000
je 0x51b7ad
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x4c]
call fcn.0051b830
test al, al
je 0x51b7b7
mov al, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp]
mov esi, 0xffffffff
neg eax
mov dword [esp + 4], eax
nop word cs:[eax + eax]
nop
mov eax, dword [esp + 4]
add eax, esi
cmp eax, 0xffffffff
je 0x51b7ed
push ebx
push dword [esp + 0x24]
call dword [edi + 0x10]
add esp, 8
inc esi
test al, al
je 0x51b7d0
jmp 0x51b7f0
mov esi, dword [esp]
cmp esi, dword [esp]
setb al
jmp 0x51b7af
cmp dword [ebp + 0x10], 0x3b9aca00
jb 0x51b814
push 0xa5f7d8
push 9
push 9
call fcn.00512540
add esp, 0xc
ud2
push 0xa5f7c8
push 0x19
push 0xa5e060
call fcn.00512480
add esp, 0xc
ud2